mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-13 13:07:32 +00:00
@@ -30,6 +30,7 @@ public class JdbcDataSource {
|
||||
private static final Object lockLock = new Object();
|
||||
private static volatile Map<String, DruidDataSource> dataSourceMap = new ConcurrentHashMap<>();
|
||||
private static volatile Map<String, Lock> dataSourceLockMap = new ConcurrentHashMap<>();
|
||||
|
||||
@Value("${source.lock-time:30}")
|
||||
@Getter
|
||||
protected Long lockTime;
|
||||
@@ -94,11 +95,11 @@ public class JdbcDataSource {
|
||||
@Getter
|
||||
protected int validationQueryTimeout;
|
||||
|
||||
@Value("${source.validation-query:'select 1'}")
|
||||
@Value("${source.validation-query:select 1}")
|
||||
@Getter
|
||||
protected String validationQuery;
|
||||
|
||||
@Value("${source.filters:'stat'}")
|
||||
@Value("${source.filters:stat}")
|
||||
@Getter
|
||||
protected String filters;
|
||||
@Autowired
|
||||
|
||||
@@ -2,6 +2,11 @@ mybatis:
|
||||
mapper-locations: classpath:mapper/*.xml
|
||||
|
||||
spring:
|
||||
main:
|
||||
allow-circular-references: true
|
||||
mvc:
|
||||
pathmatch:
|
||||
matching-strategy: ANT_PATH_MATCHER
|
||||
h2:
|
||||
console:
|
||||
path: /h2-console/semantic
|
||||
@@ -12,6 +17,8 @@ spring:
|
||||
url: jdbc:h2:mem:semantic;DATABASE_TO_UPPER=false
|
||||
username: root
|
||||
password: semantic
|
||||
schema: classpath:db/chat-schema-h2.sql
|
||||
data: classpath:db/chat-data-h2.sql
|
||||
sql:
|
||||
init:
|
||||
schema-locations: classpath:db/chat-schema-h2.sql
|
||||
data-locations: classpath:db/chat-data-h2.sql
|
||||
|
||||
|
||||
Reference in New Issue
Block a user