diff --git a/src/main/java/com/example/demo/config/DataSourceConfig.java b/src/main/java/com/example/demo/config/DataSourceConfig.java index e127cbe..c7cd24a 100644 --- a/src/main/java/com/example/demo/config/DataSourceConfig.java +++ b/src/main/java/com/example/demo/config/DataSourceConfig.java @@ -22,7 +22,7 @@ public class DataSourceConfig { @Bean(name = "dataSource2") public DataSource dataSource2() { return DataSourceBuilder.create() - .url("jdbc:mysql://localhost:3306/ying_ji?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8") + .url("jdbc:mysql://192.167.2.56:3306/ying_ji?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8") .username("root") .password("Jichuang@2023") .build();