Spring Boot28 [JPA] @Entity @Table 차이점 @Entity : 해당 클래스가 엔티티 혹은 테이블임을 나타냄 @Table : 테이블의 이름을 설정해 주는 역할 (필수가 아님) @Table이 없을 시 @Entity에서 설정한 name 혹은 클래스 이름 기반으로 생성됨 ref : https://stackoverflow.com/questions/7259273/whats-the-difference-between-the-name-argument-in-entity-and-table-when-using 2022. 9. 14. [Spring] RestTemplate vs WebClient 프로그램에서 외부 API를 호출해야 할때 어떤 방식을 사용해야 할까? 스프링 공식문서에 따르면 WebClient 사용을 적극 권장하고 있다. RestTemplate는 아직 deprecated된건 아니지만 간단한 버그수정 정도만 지원한다고 한다. ref : https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/web/client/RestTemplate.html 2022. 7. 27. [Spring] 이전 페이지로 리다이렉트 시키기 @RequestMapping(value = "/rate", method = RequestMethod.POST) public String rateHandler(HttpServletRequest request) { //your controller code String referer = request.getHeader("Referer"); return "redirect:"+ referer; } ref : https://stackoverflow.com/questions/804581/spring-mvc-controller-redirect-to-previous-page 2022. 6. 9. [Spring Boot] IntelliJ lombok 설치 및 사용법 File > Settings > Plugins Lombok 검색 후 설치 pom.xml에 dependency 추가 org.projectlombok lombok 1.18.22 provided ref : https://projectlombok.org/setup/gradle 2022. 3. 26. 이전 1 2 3 4 5 6 7 다음