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

 

 

 

 

posted @ 2020-05-24 16:51  现世安稳。  阅读(215)  评论(0编辑  收藏  举报