随笔分类 -  springboot

springboot中使用Scheduled定时任务
摘要:一:在程序入口类中添加注解@EnableScheduling 二:在一个没有带参数的方法上使用注解Scheduled 三:启动应用则会自动按照cron的规则定时执行任务 阅读全文

posted @ 2018-04-13 14:32 天生一对 阅读(523) 评论(0) 推荐(0)

springboot+mybatis使用PageHelper分页
摘要:项目结构和spring搭建mybatis请参考springboot整合mybatis。在这个基础上配置分页。 一:导入PageHelper依赖 二:在启动类SpringmybatisdemoApplication中配置PageHelper bean 三:在controller中使用PageHelpe 阅读全文

posted @ 2018-04-04 15:12 天生一对 阅读(5354) 评论(1) 推荐(0)

连接mysql提示Establishing SSL connection without server's identity verification is not recommended错误
摘要:Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL 阅读全文

posted @ 2018-04-04 11:02 天生一对 阅读(589) 评论(0) 推荐(0)

springboot整合mybatis
摘要:一:使用IDEA创建springboot项目 只点击web的web项目 完成 二:在项目目录下pom.xml中添加额外mybatis的依赖 三:配置数据库信息,springboot支持properties格式和yml格式,这里使用yml做示例。把resource下的application.prope 阅读全文

posted @ 2018-04-04 10:57 天生一对 阅读(21081) 评论(0) 推荐(0)

spring boot获取前端参数四种方法
摘要:一:直接参数绑定 二:使用HttpServletRequest对象 三: 通过RequestParam注解来绑定请求路径的参数 四:javaBean 绑定 阅读全文

posted @ 2018-03-31 14:39 天生一对 阅读(3009) 评论(0) 推荐(0)

导航