File tree Expand file tree Collapse file tree
java/boombimapi/global/properties Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11package boombimapi .global .properties ;
22
3+ import java .nio .charset .StandardCharsets ;
4+ import java .util .Base64 ;
35import org .springframework .boot .context .properties .ConfigurationProperties ;
46
57@ ConfigurationProperties (prefix = "clova.prompts" )
68public record ClovaPromptProperties (
79 String autoCompleteCongestionMessage
810) {
911
12+ public String autoCompleteCongestionMessage () {
13+ if (autoCompleteCongestionMessage == null || autoCompleteCongestionMessage .isBlank ()) {
14+ return "" ;
15+ }
16+ // 혹시 공백/개행 들어오면 제거
17+ String compact = autoCompleteCongestionMessage .replaceAll ("\\ s+" , "" );
18+ byte [] decoded = Base64 .getDecoder ().decode (compact );
19+ return new String (decoded , StandardCharsets .UTF_8 );
20+ }
21+
1022}
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ spring:
1212 password : ${DB_PASSWORD}
1313 jpa :
1414 hibernate :
15- ddl-auto : create
15+ ddl-auto : none
1616 properties :
1717 hibernate :
1818 default_schema : root # 기본 스키마
You can’t perform that action at this time.
0 commit comments