07 2022 档案
摘要:实现CommandLineRunner接口;容器启动之后,加载实现类的逻辑资源,已达到完成资源初始化的任务; @PostConstruct;在具体Bean的实例化过程中执行,@PostConstruct注解的方法,会在构造方法之后执行; @Componentpublic class TestRun
阅读全文
摘要:// 请求拦截器 axios.interceptors.request.use(res => { console.log('测试拦截器') return res }, er => { console.log('测试拦截器异常') return er }) // 返回拦截器 axios.interce
阅读全文
摘要:public static void main(String[] args) throws Exception { //创建线程池 ThreadFactory namedThreadFactory = new ThreadFactoryBuilder().setNameFormat("thread-
阅读全文