SpringBoot知识点
SpringBoot四大组件:
1, starter 开箱即用
2, autoconfiguration
3,actuator监控
4.SpringBoot CLI
javaConfig
@Configuration
@Import
@ComponetScan
常用注解:
@RestController :
@GetMapping
常用配置:
logging.level.root = info
//actuator management.server.port=9999 //自定义监控端口,不影响服务性能 management.endpoints.web.exposure.include=* // management.endpoint.health.show-details=always // management.endpoint.shutdown.enabled=true
其它 :
google 浏览器插件:jsonviewer 自动解析返回的json
所有内容皆为个人总结或转载别人的文章,只为学习技术。
若您觉得文章有用,欢迎点赞分享!
若无意对您的文章造成侵权,请您留言,博主看到后会及时处理,谢谢。