-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
160 additions
and
782 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
backend/src/main/java/ddangkong/exception/room/member/InvalidNicknameException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package ddangkong.exception.room.member; | ||
|
||
import static ddangkong.exception.ClientErrorCode.INVALID_NICKNAME; | ||
|
||
import ddangkong.exception.BadRequestException; | ||
|
||
public class InvalidNicknameException extends BadRequestException { | ||
|
||
public InvalidNicknameException(int minLength, int maxLength) { | ||
super(INVALID_NICKNAME.getMessage().formatted(minLength, maxLength)); | ||
} | ||
|
||
@Override | ||
public String getErrorCode() { | ||
return INVALID_NICKNAME.name(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,5 +5,5 @@ | |
public record RoomJoinRequest( | ||
@NotBlank | ||
String nickname | ||
) { // todo validation 닉네임 정책 | ||
) { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
spring: | ||
config: | ||
import: dev-secret.yml | ||
|
||
datasource: | ||
driver-class-name: com.mysql.cj.jdbc.Driver | ||
url: jdbc:mysql://${secret.datasource.url}:${secret.datasource.port}/${secret.datasource.database}?useUnicode=true&characterEncoding=utf8&allowPublicKeyRetrieval=true&autoReconnect=true&serverTimezone=Asia/Seoul&useLegacyDatetimeCode=false | ||
username: ${secret.datasource.username} | ||
password: ${secret.datasource.password} | ||
|
||
jpa: | ||
defer-datasource-initialization: true | ||
hibernate: | ||
ddl-auto: update | ||
properties: | ||
hibernate: | ||
show_sql: true | ||
format_sql: true | ||
default_batch_fetch_size: 1000 | ||
|
||
cors: | ||
origin: ${secret.cors.origin} | ||
|
||
logging: | ||
config: classpath:logback-dev.xml | ||
location : ${secret.application.log.location} | ||
discord: | ||
webhook-url: ${secret.discord.webhook-url} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.