1 hello world --------------ok
主启动程序必须在层次结构的最上面。
2 配置
3、日志
4、Web开发
1)SpringBoot集成JSP的方法
配置application.properties
# 页面默认前缀目录 spring.mvc.view.prefix=/WEB-INF/jsp/ # 响应页面默认后缀 spring.mvc.view.suffix=.jsp
加入依赖
<dependency> <groupId>org.apache.tomcat.embed</groupId> <artifactId>tomcat-embed-jasper</artifactId> <scope>provided</scope> </dependency> <dependency> <groupId>javax.servlet</groupId> <artifactId>jstl</artifactId> </dependency>
2)国际化
3)登录拦截
4)异常处理
5)三大组件
6)servlet
5、Docker
6、springboot连接数据库
jdbc、mybstis、jpa、整合Druid数据源
集成Mybatis
数据库列命大小写用“_”分隔
7.启动配置原理
几个重要的事件回调机制 配置在META-INF/spring.factories
ApplicationContextInitializer SpringApplicationRunListener
只需要放在ioc容器中 ApplicationRunner CommandLineRunner
8、自定义starter