FutaoSmile / springboot-learn-integration

SpringBoot项目细分整合

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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的整合

About

SpringBoot项目细分整合

License:GNU General Public License v3.0


Languages

Language:Java 99.4%Language:HTML 0.3%Language:FreeMarker 0.3%