|
|
@@ -3,6 +3,7 @@ package com.tzy.config;
|
|
|
import com.impossibl.postgres.jdbc.PGConnectionPoolDataSource;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.context.annotation.Bean;
|
|
|
+import org.springframework.context.annotation.Configuration;
|
|
|
|
|
|
import javax.sql.PooledConnection;
|
|
|
import java.sql.SQLException;
|
|
|
@@ -13,7 +14,7 @@ import java.sql.SQLException;
|
|
|
* @Description TODO
|
|
|
* @Date 2021/12/16 14:05
|
|
|
*/
|
|
|
-//@Configuration
|
|
|
+@Configuration
|
|
|
public class AppCommonConfig {
|
|
|
|
|
|
@Value("${spring.datasource.druid.master.url}")
|
|
|
@@ -90,4 +91,4 @@ public class AppCommonConfig {
|
|
|
// // ConnectionPool实现了ConnectionFactory接口,使用ConnectionFactory替换ConnectionFactory
|
|
|
// return new ConnectionPool(configuration);
|
|
|
//}
|
|
|
-}
|
|
|
+}
|