
springboot
文章平均质量分 80
菜蜗牛很菜
数据结构+算法=程序
DRY-Don't Repeat Yourself
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
SpringBoot笔记
1.什么是springbootspring Boot 已经建立在现有 spring 框架之上。使用 spring 启动, 我们避免了之前我们必须做的所有样板代码和配置。因此, Spring Boot 可以帮助我们以最少的工作量, 更加健壮地使用现有的 Spring 功能。2.Spring Boot 优点1减少开发,测试时间2使用JavaConfig有助于避免使用xml3避免大量的maven导入和各种版本冲突4不需要启动Tomcat5需要更少的配置,因为没有web.xml文件3.什么是java原创 2021-06-17 10:34:45 · 130 阅读 · 0 评论 -
多模块Spring Boot项目
重构- 调整主(父)工程类型( <packaging>pom</packaging>)- 创建子模块工程(<module>) -模型层:model -持久层:persistence -表示层:web- 子模块依赖管理(<dependencyManagement>)通过maven创建model、persistence、web等模块主pom文件将所需依赖引入...原创 2020-10-11 17:06:18 · 113 阅读 · 0 评论 -
自动装配
spring Framework手动装配spring boot 自动装配spring模式注解装配定义:一种用于声明在应用中扮演“组件”角色的注解举例:@Component @Service@Repository @Controller @Configuration(配置类模式注解)装配:<context:component-scan>或@ComponentScanSpring @Enable 模块装配定义:具备相同领域的功能组件的集合,组合所形成一个独立的单元举例:@Enab原创 2020-10-11 10:36:57 · 240 阅读 · 1 评论 -
功能扩展
spring boot应用SpringApplication 失败分析 应用特性 事件监听Spring Boot配置 外部化配置 profile 配置属性Spring Boot Starter :Starter开发 最佳实践Spring Boot应用SpringApplication失败分析 FailureAnalysisReporter应用特性SpringApplication Fluent APISpringBoot配置外部化配置 ConfigurationProperty@Pr原创 2020-10-10 20:19:06 · 140 阅读 · 0 评论 -
数据相关
关系型数据JDBC :数据源 JDBCTemplate 自动装配JPA: 实体映射关系 实体操作 自动装配事务:Spring事务抽象 JDBC事务处理 自动装配jabc依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-jdbc</artifactId>原创 2020-10-10 11:45:36 · 286 阅读 · 0 评论 -
web应用
传统servlet应用servlet组件:servlet、filter、listenerservlet注册:servlet注解、spring bean 、registrationBean异步非阻塞:异步servlet 非阻塞servlet依赖<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot原创 2020-10-10 10:16:25 · 162 阅读 · 0 评论 -
springboot笔记
spring boot 三大特性组件自动装配:Web MVC、Web Flux、JDBC等嵌入式Web容器:Tomcat、Jetty以及Undertow生产准备特性:指标、健康检查、外部化配置等组件的自动装配激活:@EnableAutoConfiguration配置:/META-INF/spring.factories实现:xxxAutoConfiguration嵌入式Web容器Web Servlet:Tomcat,jetty和UndertowWeb Reactive:Net原创 2020-10-09 21:05:57 · 81 阅读 · 0 评论