09 2020 档案
摘要:SpringBoot开启定时任务 1.首先在启动类XXXApplication上添加@EnableSchedule注解 @SpringBootApplication @EnableScheduling public class DemoApplication { ...... } 2.然后添加如下的
阅读全文
摘要:SpringBoot2以后设置跨域 实现方式:实现WebMvcConfigurer接口,这个接口里面有很多方法,不用实现所有方法(每个方法都默认实现了,所以implements之后只需要实现自己需要的方法) 这里我们实现addCorsMappings方法 import com.fasterxml.j
阅读全文
摘要:先创建一个axios的通用对象 const request = axios.create({ timeout: 10000 }); 第一种提交form表单数据,后台正常用对象接收 let fm = new FormData(); fm.append("id",1); fm.append("name"
阅读全文
摘要:错误信息如下: *************************** APPLICATION FAILED TO START *************************** Description: The bean 'xxx.FeignClientSpecification', defi
阅读全文