diff --git a/build/libs/Newsnippet-Back-0.0.1-SNAPSHOT.jar b/build/libs/Newsnippet-Back-0.0.1-SNAPSHOT.jar index b403a24..e9db620 100644 Binary files a/build/libs/Newsnippet-Back-0.0.1-SNAPSHOT.jar and b/build/libs/Newsnippet-Back-0.0.1-SNAPSHOT.jar differ diff --git a/src/main/java/org/triumers/newsnippetback/Application/service/ManageServiceImpl.java b/src/main/java/org/triumers/newsnippetback/Application/service/ManageServiceImpl.java index 1708adf..40f0749 100644 --- a/src/main/java/org/triumers/newsnippetback/Application/service/ManageServiceImpl.java +++ b/src/main/java/org/triumers/newsnippetback/Application/service/ManageServiceImpl.java @@ -81,6 +81,7 @@ public Quiz insertSelectedQuizById(int id) { CrawlingQuizDTO selectedQuiz = selectCrawlingQuizByID(id); Quiz insertQuiz = mapper.map(selectedQuiz, Quiz.class); + insertQuiz.setId(null); insertQuiz.setNo(getMaxNo() + 1); insertQuiz.setDate(nextDate); insertQuiz.setCategoryId(selectedQuiz.getCategory().getId()); diff --git a/src/main/java/org/triumers/newsnippetback/common/config/SecurityConfig.java b/src/main/java/org/triumers/newsnippetback/common/config/SecurityConfig.java index a30477e..0eac7a9 100644 --- a/src/main/java/org/triumers/newsnippetback/common/config/SecurityConfig.java +++ b/src/main/java/org/triumers/newsnippetback/common/config/SecurityConfig.java @@ -94,7 +94,7 @@ public CorsConfiguration getCorsConfiguration(HttpServletRequest request) { //경로별 인가 작업 http.authorizeHttpRequests((auth) -> auth - .requestMatchers("/auth/signup").permitAll() + .requestMatchers("/auth/**").permitAll() .requestMatchers(("/manage")).hasAnyRole("MANAGER") .requestMatchers("/admin").hasAnyRole("ADMIN") .anyRequest().authenticated()); diff --git a/src/main/java/org/triumers/newsnippetback/domain/aggregate/entity/Quiz.java b/src/main/java/org/triumers/newsnippetback/domain/aggregate/entity/Quiz.java index 022bc35..cff5f9c 100644 --- a/src/main/java/org/triumers/newsnippetback/domain/aggregate/entity/Quiz.java +++ b/src/main/java/org/triumers/newsnippetback/domain/aggregate/entity/Quiz.java @@ -15,7 +15,7 @@ public class Quiz { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) @Column(name = "ID") - private int id; + private Integer id; @Column(name = "DATE") private LocalDate date;