Skip to content

Commit

Permalink
refactor: 테스트용 로그인 로직 삭제, 기존 환경설정 파일로 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
70825 committed Sep 14, 2023
1 parent 59cfb05 commit dec3256
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,6 @@ public ResponseEntity<Void> loginAuthorizeUser(@RequestParam("code") final Strin
.build();
}

@GetMapping("/api/login/login/{id}")
public ResponseEntity<Void> loginlogin(final HttpServletRequest request) {
final Long memberId = 1L;
request.getSession().setAttribute(SESSION_ATTRIBUTE_NAME, memberId);
return ResponseEntity.ok()
.location(URI.create(HOME))
.build();
}

@PostMapping("/api/logout")
public ResponseEntity<Void> logout(@AuthenticationPrincipal final LoginInfo loginInfo,
final HttpServletRequest request, final HttpServletResponse response) {
Expand Down
22 changes: 7 additions & 15 deletions backend/src/main/resources/application-local.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
spring:
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://localhost:3306/funeat_test
username: root
url:
username:
password:

jpa:
hibernate:
ddl-auto: none
ddl-auto: create
properties:
hibernate:
format_sql: true
Expand All @@ -17,15 +18,6 @@ logging:
org.hibernate.type.descriptor.sql: trace

kakao:
rest-api-key: 1234
redirect-uri: 1234
admin-key: 1234

cloud:
aws:
region:
static: 1234
s3:
bucket: 1234
folder: 1234
cloudfrontPath: /
rest-api-key: { LOCAL_REST_API_KEY }
redirect-uri: { LOCAL_REDIRECT_URI }
admin-key: { LOCAL_ADMIN_KEY }
4 changes: 2 additions & 2 deletions backend/src/main/resources/application.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
spring:
profiles:
active: local
active: { DEPLOY_ACTIVE }
servlet:
multipart:
enabled: true
Expand All @@ -13,7 +13,7 @@ springdoc:

logging:
file:
path: /
path: { LOG_DIR }

server:
servlet:
Expand Down
2 changes: 1 addition & 1 deletion backend/src/main/resources/logback-spring.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<include resource="logback-spring-${spring.profiles.active}.xml"/>

<springProfile name="local">
<root level="INFO">
<root level="TRACE">
<appender-ref ref="CONSOLE"/>
</root>
</springProfile>
Expand Down

0 comments on commit dec3256

Please sign in to comment.