Skip to content

Commit

Permalink
Improve startup speed
Browse files Browse the repository at this point in the history
  • Loading branch information
Chat2DB-Pro committed Dec 12, 2023
1 parent 9cc07b6 commit b960600
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ private static DataSource initDataSource() {
String environment = StringUtils.defaultString(System.getProperty("spring.profiles.active"), "dev");
if ("dev".equalsIgnoreCase(environment)) {
dataSource.setJdbcUrl("jdbc:h2:file:~/.chat2db/db/chat2db_dev;MODE=MYSQL");
} if ("test".equalsIgnoreCase(environment)) {
}else if ("test".equalsIgnoreCase(environment)) {
dataSource.setJdbcUrl("jdbc:h2:file:~/.chat2db/db/chat2db_test;MODE=MYSQL");
}else {
dataSource.setJdbcUrl("jdbc:h2:~/.chat2db/db/chat2db;MODE=MYSQL;FILE_LOCK=NO");
Expand Down

0 comments on commit b960600

Please sign in to comment.