Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import io.swagger.v3.oas.annotations.responses.ApiResponse;
import lombok.RequiredArgsConstructor;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
Expand Down Expand Up @@ -76,7 +75,7 @@ public ResponseEntity<String> startBookSync() {
)
}
)
@DeleteMapping("/stop")
@PostMapping("/stop")
public ResponseEntity<String> stopBookSync() {
SchedulerStatus status = contentsSchedulerService.stopBookSync();

Expand Down Expand Up @@ -106,7 +105,7 @@ public ResponseEntity<String> stopBookSync() {
)
}
)
@PostMapping("/first/book")
@PostMapping("/first/data")
public ResponseEntity<String> saveBooksFirstData() throws JsonProcessingException {
contentsSchedulerService.saveNewBookWithLimit100();
return ResponseEntity.ok("최신 도서 100권 로드 완료되었습니다.");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,16 @@ public class Contents {
@Column(name = "content_id")
private Long contentId;

@Column(nullable = false)
@Column(nullable = false, length = 10)
private String category;

@Column(nullable = false)
@Column(nullable = false, length = 100)
private String title;

@Column(nullable = false)
@Column(nullable = false, length = 100)
private String writer;

@Column(length = 300)
@Column(length = 500)
private String summary;

@Column
Expand Down
2 changes: 1 addition & 1 deletion customer-service/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ spring:
driver-class-name: com.mysql.cj.jdbc.Driver
jpa:
hibernate:
ddl-auto: create
ddl-auto: none
default_batch_fetch_size: 1000
jdbc:
time_zone: Asia/Seoul
Expand Down
Loading