스프링부트
-
JPA 오류 java.lang.IllegalStateException: Cannot call sendError() after the response has been committedJPA 2023. 11. 11. 14:38
java.lang.IllegalStateException: Cannot call sendError() after the response has been committed Before 게시판 Board.java @Table(name = "jpa_board") @Entity @Getter @Setter @ToString @NoArgsConstructor public class Board { @Id @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "JPA_BOARD_SEQ") @Column(name="bno") private int bno;//게시판(PK) @Column(name="title", columnDefinition = "varchar..
-
Spring boot에서 WebMvcConfigurerAdapter 노란 밑줄 일때Spring Boot 2019. 4. 6. 21:38
springboot 1.5에서 springboot 2.0 으로 바뀌면서 몇가지 패키지명이랑 상속방법이 변경되었다. 1. 상속방법이 바뀜 WebMvcConfigurerAdapter deprecated public class Application extends WebMvcConfigurerAdapter -> public class Application implements WebMvcConfigurer 2. SpringBootServletInitializer 패키지 이름이 바뀜 import org.springframework.boot.web.support.SpringBootServletInitializer; -> import org.springframework.boot.web.servlet.support.Sp..