This commit is contained in:
caixiang 2023-02-15 14:06:31 +08:00
parent 971b91329f
commit 91c9602fb7
4 changed files with 19 additions and 14 deletions

View File

@ -52,15 +52,15 @@ spring:
# maximum-pool-size: 10 # maximum-pool-size: 10
##多数据源的配置需要引用renren-dynamic-datasource ##多数据源的配置需要引用renren-dynamic-datasource
#dynamic: dynamic:
# datasource: datasource:
# slave1: slave1:
# driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver driver-class-name: com.mysql.cj.jdbc.Driver
# url: jdbc:sqlserver://123456:1433;DatabaseName=renren_security url: jdbc:mysql://mysql.picaiba.com:30307/mt_cigs4?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&nullCatalogMeansCurrent=true
# username: sa username: root
# password: 123456 password: 1qaz@WSX3edc$RFV
# slave2: slave2:
# driver-class-name: org.postgresql.Driver driver-class-name: com.mysql.cj.jdbc.Driver
# url: jdbc:postgresql://123456:5432/renren_security url: jdbc:mysql://mysql.picaiba.com:30307/mt_cigs4?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&nullCatalogMeansCurrent=true
# username: postgres username: root
# password: 123456 password: 1qaz@WSX3edc$RFV

View File

@ -19,7 +19,7 @@ public class CodeGenerator {
@Test @Test
public void test(){ public void test(){
mybatisPlusGenerator(new String[]{"t_test"}); mybatisPlusGenerator(new String[]{"t_wo_power_level"});
} }
public static void mybatisPlusGenerator(String[] include){ public static void mybatisPlusGenerator(String[] include){

View File

@ -10,7 +10,7 @@ import java.nio.file.Paths;
* @Version 1.0 * @Version 1.0
*/ */
public class DataConfig { public class DataConfig {
public static final String url = "jdbc:mysql://mysql.picaiba.com:30307/ym_pass?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&nullCatalogMeansCurrent=true"; public static final String url = "jdbc:mysql://mysql.picaiba.com:30307/mt_cigs4?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&nullCatalogMeansCurrent=true";
public static final String username = "root"; public static final String username = "root";
public static final String password = "1qaz@WSX3edc$RFV"; public static final String password = "1qaz@WSX3edc$RFV";
} }

View File

@ -23,5 +23,10 @@
<artifactId>ym-common</artifactId> <artifactId>ym-common</artifactId>
<version>1.0-SNAPSHOT</version> <version>1.0-SNAPSHOT</version>
</dependency> </dependency>
<dependency>
<groupId>com.cnbm</groupId>
<artifactId>ym-dynamic-datasource</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
</dependencies> </dependencies>
</project> </project>