随笔分类 -  SpringBoot

上一页 1 2

8-springboot使用拦截器
摘要:参考文章: https://blog.csdn.net/leeta521/article/details/119532691 SpringBoot通过实现HandlerInterceptor接口实现拦截器,通过实现WebMvcConfigurer接口实现一个配置类,在配置类中注入拦截器,最后再通过@ 阅读全文

posted @ 2023-03-22 15:41 companion 阅读(23) 评论(0) 推荐(0) 编辑

7-springboot-多数据源事务管理-jta+atomikos的分布式事务
摘要:jta+atomikos的分布式事务 <!--jta+atomikos分布式事务--><dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-jta-atomikos</arti 阅读全文

posted @ 2023-03-22 14:31 companion 阅读(221) 评论(0) 推荐(0) 编辑

6-springboot配置多数据源
摘要:1.application.properties中配置多数据源 #refund数据源#此种标黄的没办法自己进行解析,代码读取spring.datasource.refunddb.url=jdbc:mysql://refund地址spring.datasource.refunddb.username= 阅读全文

posted @ 2023-03-22 13:56 companion 阅读(202) 评论(0) 推荐(0) 编辑

5-springboot集成热部署的方式
摘要:热部署是指当我们修改代码后,服务能自动重启加载新修改的内容,这样大大提高了我们开发的效率; Spring boot热部署通过添加一个插件实现; 插件为:spring-boot-devtools,在Maven中配置如下: <!-- springboot 开发自动热部署 --> <dependency> 阅读全文

posted @ 2023-03-21 10:12 companion 阅读(22) 评论(0) 推荐(0) 编辑

4-springboot集成mybatis
摘要:1.pom.xml中添加mybatis依赖 2.application.properties中添加数据源配置 3.反向生成dao的代码 1. <!-- mybatis-spring-boot-starter --><dependency> <groupId>org.mybatis.spring.bo 阅读全文

posted @ 2023-03-21 09:38 companion 阅读(14) 评论(0) 推荐(0) 编辑

3-springboot项目使用jsp
摘要:1、在pom.xml文件中配置依赖项 <!--前端页面使用JSP--><!--引入Spring Boot内嵌的Tomcat对JSP的解析包--><dependency> <groupId>org.apache.tomcat.embed</groupId> <artifactId>tomcat-emb 阅读全文

posted @ 2023-03-20 14:43 companion 阅读(49) 评论(0) 推荐(0) 编辑

2-springboot的开发环境及新建项目
摘要:1.maven 3.+以上版本 2.jdk 1.8以上要求-springboot2以上的版本 3.创建项目的步骤 阅读全文

posted @ 2023-03-20 13:28 companion 阅读(19) 评论(0) 推荐(0) 编辑

1-SpringBoot中自动生成实体类及mapper
摘要:参考博客: https://blog.csdn.net/qq_35387940/article/details/125777457 1.准备好数据库和表 mysql在windows环境下安装参考: https://blog.csdn.net/weixin_43423484/article/detai 阅读全文

posted @ 2023-02-22 17:14 companion 阅读(182) 评论(0) 推荐(0) 编辑

上一页 1 2
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

点击右上角即可分享
微信分享提示