2026-06-01 19:09:40 +08:00
|
|
|
package com.company.agentfoundation;
|
2026-06-08 18:29:56 +08:00
|
|
|
|
2026-06-01 19:09:40 +08:00
|
|
|
import org.springframework.boot.SpringApplication;
|
|
|
|
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
2026-06-08 18:29:56 +08:00
|
|
|
import org.springframework.boot.context.event.ApplicationReadyEvent;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
|
|
import org.springframework.context.event.EventListener;
|
|
|
|
|
import org.slf4j.Logger;
|
|
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
|
|
|
2026-06-01 19:09:40 +08:00
|
|
|
@SpringBootApplication
|
|
|
|
|
public class AgentFoundationApplication {
|
2026-06-08 18:29:56 +08:00
|
|
|
private static final Logger log = LoggerFactory.getLogger(AgentFoundationApplication.class);
|
|
|
|
|
|
|
|
|
|
@Value("${server.port:8080}")
|
|
|
|
|
private String serverPort;
|
|
|
|
|
|
|
|
|
|
public static void main(String[] args) {
|
|
|
|
|
SpringApplication.run(AgentFoundationApplication.class, args);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@EventListener(ApplicationReadyEvent.class)
|
|
|
|
|
public void onApplicationReady() {
|
|
|
|
|
log.info("agent-foundation startup success port={} health=/v1/healthz wecomCallback=/v1/integrations/wecom/callback agentMessages=/v1/agent/messages", serverPort);
|
|
|
|
|
}
|
2026-06-01 19:09:40 +08:00
|
|
|
}
|