Skip to content

Commit

Permalink
Merge branch 'be-dev' into feature/#258
Browse files Browse the repository at this point in the history
  • Loading branch information
Arachneee committed Aug 9, 2024
2 parents 24363ad + 97fc7fb commit fb5d0ed
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
package server.haengdong;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@Slf4j
@SpringBootApplication
public class HaengdongApplication {

public static void main(String[] args) {
log.error("################### μ•ˆλ…•ν•˜μ„Έμš”. CI/CD ν…ŒμŠ€νŠΈμž…λ‹ˆλ‹€. ###################");
SpringApplication.run(HaengdongApplication.class, args);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import jakarta.validation.Valid;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.http.HttpHeaders;
import org.springframework.http.ResponseCookie;
Expand All @@ -23,6 +24,7 @@
import server.haengdong.presentation.response.MembersResponse;
import server.haengdong.presentation.response.StepsResponse;

@Slf4j
@RequiredArgsConstructor
@EnableConfigurationProperties(CookieProperties.class)
@RestController
Expand All @@ -34,6 +36,8 @@ public class EventController {

@PostMapping("/api/events")
public ResponseEntity<EventResponse> saveEvent(@Valid @RequestBody EventSaveRequest request) {
log.error("################### μ•ˆλ…•ν•˜μ„Έμš”. CI/CD ν…ŒμŠ€νŠΈμž…λ‹ˆλ‹€. ###################");

EventResponse eventResponse = EventResponse.of(eventService.saveEvent(request.toAppRequest()));

String jwtToken = authService.createToken(eventResponse.eventId());
Expand Down
7 changes: 6 additions & 1 deletion server/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,19 @@ management:
endpoints:
web:
exposure:
include: logfile
include: logfile, metrics

logging:
level:
root: debug
org.springframework.web: debug
server.haengdong: debug

file:
name: logs/spring-boot-application.log
path: logs
config: classpath:logback-spring.xml

server:
servlet:
encoding:
Expand Down

0 comments on commit fb5d0ed

Please sign in to comment.