配置文件
spring:
jmx: #### 关闭springboot JMX监控
enabled: false
main: #### 使用懒加载
lazy-initialization: true
为注解模式添加索引,提升应用启动性能
pom.xml
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context-indexer</artifactId>
<optional>true</optional>
</dependency>
启动类添加@Indexed