![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
SpringBoot
count的专栏
这个作者很懒,什么都没留下…
展开
-
SpringBoot整合RabbitMQ
SpringBoot整合RabbitMQ实现发布订阅1. 生产者项目1.1 添加依赖 <!--rabbitmq--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spri...原创 2020-03-06 14:32:42 · 251 阅读 · 0 评论 -
SpringBoot整合Ehcache框架
SpringBoot整合Ehcache框架1.创建数据库-- database test-- ------------------------------ Table structure for user-- ----------------------------DROP TABLE IF EXISTS `user`;CREATE TABLE `user` ( `id` int...原创 2020-03-02 11:20:24 · 158 阅读 · 0 评论 -
使用IDEA创建一个SpringBoot项目(一)
1.选择Create New Project创建一个项目2.选择Spring Initializr,然后点击Next3.原创 2019-09-23 18:54:24 · 237 阅读 · 0 评论 -
SpringBoot整合JPA-Hibernate(二)
1.为项目添加依赖上一篇中已经建好了项目,接下来我们为项目添加依赖pom.xml <!--mysql--> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java<...原创 2019-09-26 14:15:38 · 393 阅读 · 0 评论 -
SpringBoot整合多数据源jpa+mybatis(三)
项目结构user表使用jpa,product表使用mybatis1.在mysql建两个库user和product2.多数据源配置application.properties################# db 整合多数据源################spring.datasource.user.jdbc-url=jdbc:mysql://localhost:3306/u...原创 2019-10-06 16:28:04 · 1417 阅读 · 0 评论 -
SpringBoot使用thymeleaf实现用户的登录注册(四)
本文在上一篇(SpringBoot整合多数据源jpa+mybatis(三))基础上使用thymeleaf实现用户的登录注册。项目结构图如下:流程图如下:user采用JPA,product采用mybatis,html采用thymeleaf模板。数据源配置不变,实体类也不变。1.为项目增加依赖我们只需再加入thymeleaf即可<!--thymeleaf--><...原创 2019-10-08 14:37:53 · 12239 阅读 · 3 评论 -
SpringBoot使用Thymeleaf实现商品的增删改查(五)
本文在上一篇(SpringBoot使用thymeleaf实现用户的登录注册(四))基础上实现用户对商品的增删改查。项目结构图如下:项目结构图中框起来的是需要修改或者新建的流程图如下:1.修改db2(product)的功能实现1.1修改db2—>mapper下的ProductMapper.java@Qualifier("db2SqlSessionFactory")@Mapp...原创 2019-10-09 13:19:07 · 2482 阅读 · 0 评论 -
SpringBoot配置Druid连接池(六)
本文在上一篇(SpringBoot使用Thymeleaf实现商品的增删改查(五))基础上配置Druid连接池项目结构图如下:项目结构图中框起来的是需要修改或者新建的1.添加Druid依赖pom.xml <!--druid--> <dependency> <groupId>com.alibaba</groupId> ...原创 2019-10-10 20:23:56 · 2887 阅读 · 0 评论