Skip to content

FutaoSmile/springboot-learn-integration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Feb 23, 2021
ea19667 · Feb 23, 2021

History

76 Commits
Jun 19, 2019
Dec 22, 2020
Mar 19, 2020
Mar 9, 2020
Feb 4, 2021
Mar 9, 2020
Feb 4, 2021
Mar 9, 2020
Mar 9, 2020
Feb 4, 2021
Mar 9, 2020
Feb 4, 2021
Dec 22, 2020
Mar 9, 2020
Mar 9, 2020
Feb 4, 2021
Mar 14, 2020
Feb 23, 2021
Mar 9, 2020
Mar 9, 2020
Feb 4, 2021
May 1, 2020
Mar 9, 2020
Feb 4, 2021
Mar 9, 2020
Mar 9, 2020
Mar 30, 2020
Dec 22, 2020
Feb 4, 2021
Feb 4, 2021
Feb 23, 2021
Mar 9, 2020
Apr 20, 2020
Jun 28, 2019
Jun 19, 2019
Dec 22, 2020
Jun 19, 2019
Jun 19, 2019
Feb 23, 2021
Dec 22, 2020
Jun 27, 2019

Repository files navigation

Thanks to jetbrains

    <modules>
            <module>springboot-learn-batch</module>
            <module>springboot-learn-server</module>
            <module>springboot-learn-thymeleaf</module>
            <module>springboot-learn-freemarker</module>
            <module>springboot-learn-api</module>
            <module>springboot-learn-static-resources</module>
            <module>springboot-learn-file-upload</module>
            <module>springboot-learn-enhance</module>
            <module>springboot-learn-persistent-jdbc-template</module>
            <module>springboot-learn-mybatis</module>
            <module>springboot-learn-jpa</module>
            <module>springboot-learn-redis</module>
            <module>springboot-learn-session-share</module>
            <module>springboot-learn-rest</module>
            <module>springboot-learn-cache-ehcache</module>
            <module>springboot-learn-security</module>
    </modules>

批处理

使用jetty代替tomcat

在SpringBoot中使用模板引擎-thymeleaf

在SpringBoot中使用模板引擎-freemarker

使用Springboot提供REST api接口

  • 自定义消息转换器httpMessageConvert
  • 异步方法的使用

在SpringBoot项目中访问静态资源

文件上传

SpringBoot增强

  • HandlerInterceptor 拦截器
  • 切面 AOP
  • 数据持久化-jdbcTemplate
  • jdbcTemplate-多数据源
  • 粒度:
    • 每一条sql语句都可以选择某个数据源,粒度很细
  • 数据持久化-mybatis
  • mybatis-多数据源
  • 粒度
    • 可以给某个包下所有的mapper配置一个数据源
  • 注解式数据持久化-jpa
  • jpa-多数据源
    • 粒度也是包级别
  • 整合单机redis
  • 分布式session共享
  • Rest接口-不需要编写Controller
  • 使用ehcache作为缓存
  • 在项目中使用SpringSecurity

TODO

  • MyCat读写分离,分库分表
  • redis集群与Springboot的整合