|
@ -1,23 +1,16 @@ |
|
|
package a8k; |
|
|
package a8k; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import de.codecentric.boot.admin.server.config.EnableAdminServer; |
|
|
|
|
|
import org.springframework.core.env.Environment; |
|
|
|
|
|
import jakarta.annotation.Resource; |
|
|
import jakarta.annotation.Resource; |
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
|
|
import org.springframework.beans.factory.annotation.Value; |
|
|
|
|
|
import org.springframework.boot.SpringApplication; |
|
|
import org.springframework.boot.SpringApplication; |
|
|
import org.springframework.boot.autoconfigure.SpringBootApplication; |
|
|
import org.springframework.boot.autoconfigure.SpringBootApplication; |
|
|
import org.springframework.context.ApplicationListener; |
|
|
import org.springframework.context.ApplicationListener; |
|
|
import org.springframework.context.annotation.ComponentScan; |
|
|
|
|
|
import org.springframework.context.annotation.EnableAspectJAutoProxy; |
|
|
|
|
|
import org.springframework.context.event.ContextRefreshedEvent; |
|
|
import org.springframework.context.event.ContextRefreshedEvent; |
|
|
import org.springframework.stereotype.Component; |
|
|
|
|
|
|
|
|
import org.springframework.core.env.Environment; |
|
|
|
|
|
|
|
|
@Slf4j |
|
|
@Slf4j |
|
|
@SpringBootApplication |
|
|
@SpringBootApplication |
|
|
@EnableAdminServer |
|
|
|
|
|
public class BoditechA800Application implements ApplicationListener<ContextRefreshedEvent> { |
|
|
public class BoditechA800Application implements ApplicationListener<ContextRefreshedEvent> { |
|
|
|
|
|
|
|
|
@Resource |
|
|
@Resource |
|
@ -29,7 +22,8 @@ public class BoditechA800Application implements ApplicationListener<ContextRefre |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@Override public void onApplicationEvent(ContextRefreshedEvent event) { |
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
public void onApplicationEvent(ContextRefreshedEvent event) { |
|
|
// if (null == event.getApplicationContext().getParent()) { |
|
|
// if (null == event.getApplicationContext().getParent()) { |
|
|
// log.info("Springboot加载完成"); |
|
|
// log.info("Springboot加载完成"); |
|
|
// try { |
|
|
// try { |
|
|