使用之前配置的两个DataSource,配置类如下: MultiDataSourceApplication: /** * 启动类 * @author caofanqi */ @EnableAsync @SpringBootApplication @EnableTransactionManagemen ...
分类:
编程语言 时间:
2020-01-10 01:15:40
阅读次数:
105
1、SpringBoot 2.2.x默认使用的DataSource SpringBoot 2.2.x版本,默认使用的DataSource是HikariCP,可以直接通过注入DataSource,并打印出打印全限定名,可以查看。 或可以通过查看自动配置源码,来找到: @SpringBootApplic ...
分类:
编程语言 时间:
2020-01-10 00:58:51
阅读次数:
127
``` #first db spring.datasource.url = [url] spring.datasource.username = [username] spring.datasource.password = [password] spring.datasource.driverCl... ...
分类:
编程语言 时间:
2020-01-09 13:34:37
阅读次数:
111
1.打开pycharm,新建一个项目 File -> New Project -> Create 2.设置External Libraries,就是选择项目的python代码解释器 File -> Settings -> Project:项目名字 -> Project Interpreter -> ...
分类:
系统相关 时间:
2020-01-08 13:04:43
阅读次数:
186
我们已常用的请假来设计一个流程。 流程设计器参见springboot2+activiti 7 整合(二) IDEA安装Activiti工作流设计器,通过在项目中右键找到External Tools -> camunda-modeler开始流程设计。 相同的业务流程,流程定义的 id 名字定义一样,比 ...
分类:
编程语言 时间:
2020-01-08 12:16:03
阅读次数:
1367
ython Files In short, the built in function creates a Python file object, which serves as a link to an external file residing on your machine. what is ...
分类:
编程语言 时间:
2020-01-07 20:12:37
阅读次数:
100
#error "C++ versions less than C++11 are not supported." I encountered the same error. A nasty workaround was to add flags --std=c++11 and -DNDEBUG to ...
分类:
其他好文 时间:
2020-01-07 17:59:54
阅读次数:
426
1. ClickHouse 查询时,报错:Memory limit (for query) exceeded: would use 9.38 GiB (attempt to allocate chunk of 135439453 bytes), maximum: 9.31 GiB 1.1 Click ...
分类:
其他好文 时间:
2020-01-06 19:37:45
阅读次数:
598
原数据源配置为这样 spring.datasource.driver-class-name=oracle.jdbc.driver.OracleDriver 跟现在更改为 spring.datasource.driver-class-name=oracle.jdbc.OracleDriver 启动项目 ...
分类:
数据库 时间:
2020-01-06 13:10:37
阅读次数:
300
spring boot使用mybatis连接MySQL: applicationg.yml设置: spring: datasource: url: jdbc:mysql://***.*.***.***:3306/socks?useSSL=false username: root password: ...
分类:
数据库 时间:
2020-01-05 15:30:47
阅读次数:
147