摘要: springboot 提供了对项目的监控功能。 1.首先添加依赖包 <!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-actuator --><dependency> <group 阅读全文
posted @ 2019-04-12 16:49 明天,你好啊 阅读(23490) 评论(0) 推荐(4) 编辑
摘要: 你可以在自己创建的组件上使用@ConfigurationProperties注解,而Spring Boot自动配置的很多组件也添加了@ConfigurationProperties注解,可以通过Spring Boot支持的各种属性源对其进行配置。例如,要指定内嵌的Tomcat或Jetty服务器应监听 阅读全文
posted @ 2019-04-12 11:41 明天,你好啊 阅读(3219) 评论(1) 推荐(0) 编辑