spring-boot全家桶

发布时间 2023-06-18 15:49:47作者: 大树2

spring-boot全家桶:

spring-boot--druid-datasource
spring-boot--sample-mybatis
spring-boot--mybatis-genertor
spring-boot--mapper-mybatis
spring-boot--dubbo
spring-boot--redis
spring-boot--redis-distribute-lock 分布式锁
spring-boot--redis-cache
spring-boot--logback
spring-boot--restful
spring-boot--mvc-interceptor
spring-boot--servletobject
spring-boot--web-thymeleaf


1.spring-boot:api+配置文件
api,
读取application.yml 配置文件
读取自定义配置文件;
将读取的配置文件内容转换为javabear 队列实例

2.spring-boot:集成数据库访问:alibaba druid spring datasource 监控api,
多数据源的配置文件配置:

3.spring-boot:mybatis
开启注解:idea-->settings-->build -->compiler-->annotation rpocessors-->enable annotation processing
lombok

3.spring-boot:mybatis-generator逆向工程:配置文件生成实体

“jdbc:mysql:///test_db?useSSL=false&serverTimezone=GMT%2B8

resources.generatorconfig.xml:
配置生成实体的文件路径:
mapper接口生成配置的路径:java
mapper对应的映射文件生成配置路径,xml

4.通用mapper,mybatis,好处是单表:增删改查不用写sql