Spring/Spring Study16 [Spring Thread Pool 사용하기 @Component public class TestScheduler { @Scheduled(fixedDelay = 1000) //작업이 끝나는 시점으로부터 1초 후에 수행 public void test1() throws InterruptedException { Thread.sleep(10000); // 10초 대기 System.out.println("Test1: " + LocalDateTime.now()); } @Scheduled(fixedDelay = 1000) //작업이 끝나는 시점으로부터 1초 후에 수행 public void test2() { System.out.println("Test2: " + LocalDateTime.now()); } } 위 코드를 보았을 때 test1이 한 번 실행될 때 te.. 2024. 4. 8. [H2] GenerationType.IDENTITY 오류 org.hibernate.engine.jdbc.spi.SqlExceptionHelper logExceptions ERROR: NULL not allowed for column "ID"; SQL statement: 해결 방법은 2가지가 있다. H2 다운그레이드 (1.4.200 버전 사용) ;MODE=MySQL 추가 e.g. spring.datasource.url=jdbc:h2:tcp://localhost/~/test;MODE=MySQL 한참 서치했던 오류 ㅜㅅㅜ... 단순히 H2 버전 때문에 생긴 오류였다. IntelliJ 얼티밋 버전에서 H2 최신 버전을 사용하라고 추천해줘서 ok하고 눌렀는데 이런 파장이 생길 줄이야🥹 H2 database GenerationType.IDENTITY 오류 질문입니다. -.. 2024. 4. 8. [Spring] IntelliJ 실행 시 finished with non-zero exit value 1 오류 [File > Settings] 메뉴 클릭 [Build, Excution, Deployment > Build Tools > Gradle] 클릭 Build and run using과 Run tests using : Gradle(Default)로 되어 있다면 Intellij IDEA로 바꿀 것 다른 파트를 설정하다가 Gradle(Default)로 바꿔두고는 잊어버려서 오류가 났다. 다행히 바로 해결~ [Spring] Intellij 실행시 finished with non-zero exit value 1 오류 Intellij 실행시 finished wit non-zero exit value 1 오류 velog.io 2024. 4. 8. [Spring] SpringBoot 3.X 버전 - Swagger 적용 오류 해결 SpringBoot 3.2.4 버전 프로젝트에 Swagger를 적용하려 했는데 Type javax.servlet.http.HttpServletRequest not present 라는 오류를 마주쳤다. stack overflow의 관련 글⬇️ Springfox Type javax.servlet.http.HttpServletRequest not present I'm trying to use SpringFox. Spring Boot version: 'org.springframework.boot:3.0.0-SNAPSHOT' build.gradle dependencies { ... implementation 'io.springfox:springfox-petstore:2.10.5' implementation & s.. 2024. 4. 8. 이전 1 2 3 다음