07 2022 档案

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