随笔分类 - springboot
摘要:springboot异步线程池配置 package com.sangfor.api.config; import org.springframework.aop.interceptor.AsyncUncaughtExceptionHandler; import org.springframework
阅读全文
摘要:下面案例是配置多数据源,两个及以上,但是主数据源只能是一个,默认mybatis使用的是主数据源 下面配置mysql为主数据源,通过注解@Primary标注 yaml文件配置: spring: datasource: mysqlMain: #mysql主数据源,可关联mybatis type: com
阅读全文