springBoot基础知识
springBoot基础知识:
1.简化配置
2.优化配置 拥有一个单独的配置文件
application.yml .properties
3.简化部署 自身自带内置的Web容器
4.简化监测 SpringBoot可以提供程序运行时的信息
方便修改源代码
5.与主流框架集成度高 比如Redis 可以无缝集成,方便整个项目的开发
SpringBoot对环境的要求:
JDK1.8及以上
Tomcat9及以上
Maven3.3及以上
主要由7个注解构成:
JAVA:
1.@Target
2.@Retention
3.@Documented
4.@Inherited
SprintBoot⚠️:
1.@SpringBootConfiguration
初始化Spring容器
2.@EnableAutoConfiguration
启动SrpingBoot的自动配置
Sprint:
1.ComponentScan
用来扫描启动类目录下及子目录的注解,并且让这些注解生效
SpringBoot项目中三个核心文件:
1.启动类
2.配置文件 application.properties
3.pom.xml
有三个核心依赖:
父依赖的作用
1.限定 java JDK的版本
2.限定源码的故事,UTF-8
3.识别插件
Warning: Undefined variable $aria_req in /www/wwwroot/l.lvovl.cn/wp-content/themes/JieStyle-Two-master/comments.php on line 26
Warning: Undefined variable $aria_req in /www/wwwroot/l.lvovl.cn/wp-content/themes/JieStyle-Two-master/comments.php on line 27
Warning: Undefined variable $aria_req in /www/wwwroot/l.lvovl.cn/wp-content/themes/JieStyle-Two-master/comments.php on line 28