Skip to content

Commit

Permalink
revert app.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
lhpqaq committed Aug 29, 2024
1 parent 4696f7a commit f2ac4d5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -302,9 +302,7 @@ public SseEmitter talk(Long platformId, Long threadId, String message) {
.orElseThrow(() -> new ApiException(ApiExceptionEnum.PLATFORM_NOT_FOUND));

PlatformAuthorizedDTO platformAuthorizedDTO = new PlatformAuthorizedDTO(
platformPO.getName(),
platformAuthorizedPO.getCredentials(),
chatThreadPO.getModel());
platformPO.getName(), platformAuthorizedPO.getCredentials(), chatThreadPO.getModel());
AIAssistant aiAssistant = buildAIAssistant(platformAuthorizedDTO, chatThreadPO.getId());
if (aiAssistant == null) {
throw new ApiException(ApiExceptionEnum.CREDIT_INCORRECT);
Expand Down
14 changes: 9 additions & 5 deletions bigtop-manager-server/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,18 @@ bigtop:
port: 8835

spring:
banner:
charset: utf-8
application:
name: bigtop-manager-server
main:
banner-mode: log
datasource:
# driver-class-name: com.mysql.jdbc.Driver(mysql8以下类名)
driver-class-name: com.mysql.cj.jdbc.Driver
password: hnu123456
driver-class-name: org.postgresql.Driver
url: jdbc:postgresql://localhost:5432/bigtop_manager
username: postgres
password: postgres
type: com.zaxxer.hikari.HikariDataSource
url: jdbc:mysql://localhost:3306/bigtop_manager
username: root
hikari:
auto-commit: true
connection-test-query: select 1
Expand All @@ -47,6 +50,7 @@ spring:
pool-name: BigtopManagerHikariCP
validation-timeout: 3000


jackson:
default-property-inclusion: non-null

Expand Down

0 comments on commit f2ac4d5

Please sign in to comment.