![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
spring boot
酸奶不够酸
这个作者很懒,什么都没留下…
展开
-
使用eclipse 搭建 spring boot + mybatis 连接 postgresql数据库
1.引入postgresql相关jar包,这里主要讲引入postgresql,其他忽略2.修改数据库配置文件,这里使用.yml文件配置方式3.使用mybatis连接数据库mapper,dao...因为懒就省略不写了4.controller层 /** * Get Order List */ @PostMapping(value = "/order") pu...原创 2019-09-09 10:19:59 · 536 阅读 · 0 评论 -
Spring boot 定时器任务
先在启动类上添加注解@EnableScheduling//添加@EnableScheduling可以扫描到定时任务@SpringBootApplication(scanBasePackages = {ApplicationConfig.SCAN_BASE_PACKAGE})@EnableSchedulingpublic class TaskApplication { /**...原创 2019-09-18 09:17:42 · 1084 阅读 · 1 评论