摘要: 1 在数据的查询语句中首先执行以下命令 show VARIABLES LIKE '%sche%' -- 查询mysql 事件配置是否开启 SET GLOBAL event_scheduler = 1; -- 设置启动定时任务 2在数据库的事件中新建事件 3 在定义中执行update语句 UPDATE 阅读全文
posted @ 2020-08-20 17:34 我是一只老白兔 阅读(730) 评论(0) 推荐(0) 编辑
摘要: 1在eclipse中导入springboot项目,如果没有安装eclipse的,可以查看:https://www.cnblogs.com/zhushilai/p/13443053.html 不会导入项目的,可以查看https://www.cnblogs.com/zhushilai/p/1346800 阅读全文
posted @ 2020-08-20 15:49 我是一只老白兔 阅读(438) 评论(0) 推荐(0) 编辑
摘要: 1直接上代码,然后通过鼠标右键 run as Junit Test方法 package com.example.demo; import org.junit.runner.RunWith;import org.springframework.beans.factory.annotation.Auto 阅读全文
posted @ 2020-08-20 15:12 我是一只老白兔 阅读(364) 评论(0) 推荐(0) 编辑
摘要: 1springboot单元测试的依赖jar <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId> <scope>test</scope> < 阅读全文
posted @ 2020-08-20 14:37 我是一只老白兔 阅读(437) 评论(0) 推荐(0) 编辑