首页 > 技术文章 > Springboot使用基础总结

gtnotgod 2021-03-26 10:31 原文

  • 搭建项目 (Eclipse   |  |     IDEA====>官方生成DEMO:http://start.spring.io/
    • 模版引擎    (
      •   thymeleaf
      •   freemarker
      •  velocity
  • 全局异常  (
  • @ControllerAdvice
  • @RestControllerAdvice
  • 持久框架(Mybatis,mybatis-plus,Hibernate,Druid,   JdbcTemplate,c3p,dbcp。。。。JDBC)
  • 缓存技术  (redis,Jedis,RedisTemplate,Redisson
  • 定时任务  (@EnableScheduling,@Scheduled(fixedRate = 3000),@Scheduled(cron = "4-40 * * * * ?")
  • 异步任务  (@EnableAsync,@Async
  • 使用拦截器  (implementsHandlerInterceptor 。。。preHandle,postHandle,afterCompletion

此外:

  1. 响应码和统一数据格式  
  2. jackson   
  3. SpringBoot热部署--devtools
  4. 资源文件属性配置(yml ||  properties)
  5. maven ||  gradle
  6. svn   | |   Git
  7. mysql   ||  OSS
  8. Security  ||  shiro
  9. swagger ||   junit
  10.  websocket   ||  Excel 
  11. captcha  ||  lombok

 

  • 搭建项目
  • 模版引擎
  • 全局异常
  • 持久框架
  • 缓存技术
  • 定时任务
  • 异步任务
  • 使用拦截器

推荐阅读