Files
xservice-ai-center/xservice-server/src/main/java/com/xiang/XserviceAIApplication.java
2026-03-12 23:58:02 +08:00

26 lines
1.2 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package com.xiang;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.ConfigurationPropertiesScan;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.core.env.Environment;
@SpringBootApplication
public class XserviceAIApplication {
private static final Logger log = LoggerFactory.getLogger(XserviceAIApplication.class);
public static void main(String[] args) {
log.info("======> xservice stock center application 启动准备 <======");
ConfigurableApplicationContext context = SpringApplication.run(XserviceAIApplication.class, args);
Environment environment = context.getBean(Environment.class);
log.info("启动环境配置:{} 启动端口配置:{}", environment.getProperty("spring.profiles.active"), environment.getProperty("server.port"));
log.info("======> xservice ai center application 启动完成 <======");
}
}