SpringBoot与Web
 先在idea中选择场景
 springboot已经默认将这些常见配置好了,我们只需要在配置文件中指定少量配置就可以运行起来
 然后我们可以开始编写业务代码了

@Configuration 指定这个是配置类
@ConditionalOnxxx 在某些条件下才生效
@AutoConfigureAfter 指定自动配置类的顺序
@Bean 给IOC加组件
@ConfiguretionProperties 结合相关的xxxProperties配置类来绑定配置
@EnableConfigurationProperties 让xxxProperties生效加入到容器中
讲自动配置类配置在META-INF/spring.factories中
修改文件.idea/workspace.xml
| 1 | <component name="PropertiesComponent"> | 
https://segmentfault.com/a/1190000023095631
对于所有的容器化开发,我们的时区都需要设置
| 1 | -v /etc/localtime:/etc/localtime | 
| 1 | package com.example.demo; |