Skip to content

Commit

Permalink
AuthConfig 임시 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
dlwjddn123 committed Jun 12, 2024
1 parent f05e69b commit 856f8ad
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 7 deletions.
12 changes: 6 additions & 6 deletions src/main/java/nbdream/auth/config/AuthConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ public void addCorsMappings(final CorsRegistry registry) {
.allowCredentials(true);
}

@Override
public void addInterceptors(final InterceptorRegistry registry) {
registry.addInterceptor(authenticationInterceptor)
.addPathPatterns("/**")
.excludePathPatterns("/social/**", "/swagger-ui/**");
}
// @Override
// public void addInterceptors(final InterceptorRegistry registry) {
// registry.addInterceptor(authenticationInterceptor)
// .addPathPatterns("/**")
// .excludePathPatterns("/social/**", "/swagger-ui/**");
// }
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public class ImageController {
private final ImageService imageService;

@PostMapping("/{domain}/images")
public ResponseEntity<String> uploadImage(@PathVariable("domain") String domain, MultipartFile image, HttpServletRequest request) {
public ResponseEntity<String> uploadImage(@PathVariable("domain") String domain, MultipartFile image) {
if (domain == null) {
return ResponseEntity.status(HttpStatus.BAD_REQUEST).body("Invalid domain");
}
Expand Down
12 changes: 12 additions & 0 deletions src/main/resources/application-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
spring:
jpa:
hibernate:
ddl-auto: create
properties:
hibernate:
dialect: org.hibernate.dialect.MySQL8Dialect
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
username: root
password: 1234
url: jdbc:mysql://34.47.100.5:3306/test?serverTimezone=Asia/Seoul
9 changes: 9 additions & 0 deletions src/main/resources/application-local.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
spring:
jpa:
hibernate:
ddl-auto: create
datasource:
driver-class-name: org.h2.Driver
url: jdbc:h2:tcp://localhost/~/nbdream # H2 접속 정보
username: sa # H2 접속 시 입력할 username 정보 (원하는 것으로 입력)
password: # H2 접속 시 입력할 password 정보 (원하는 것으로 입력)

0 comments on commit 856f8ad

Please sign in to comment.