摘要:
Spring 中定时任务有两种实现方式:1.@Scheduled(cron表达式)2.基于SchedulingConfigurer注册定时任务这两者的区别主要有1.@Scheduled不支持动态修改定时周期,只能停止服务器,修改cron表达式,再启动服务器;SchedulingConfigurer可 阅读全文
摘要:
spring mvc给我们提供了一个@RestControllerAdvice来增强所有@RestController,然后使用@ExceptionHandler注解,就可以拦截到对应的异常。 @RestControllerAdvice public class ControllerExceptio 阅读全文
摘要:
1.mysql -u root -p 输入密码 2.选择数据库 use database 2.导入文件csv文件 load data local infile 'E:\\tmp\\prod.csv' into table ${tableName} fields terminated by ',' l 阅读全文