Spring (8) 썸네일형 리스트형 절대 URI인 [http://java.sun.com/jstl/core_rt]을(를), web.xml 또는 이 애플리케이션과 함께 JSTL 라이브러리가 없거나 구버전 사용시 발생함. build.gradle 에 추가 // JSTL implementation('javax.servlet:jstl:1.2') implementation('org.apache.tomcat.embed:tomcat-embed-jasper:10.0.14') Spring Boot 2.5.6 이하 log4j 보안취약점 패치 1. spring-boot-starter-web 내부에서 log4j 사용함. 2. @Log4j, @Slf4j 사용 안하면 영향 없음. 3. 그래도 찝찝하니까 패치 build.grade // 종속성 추가 configurations { all { resolutionStrategy.eachDependency { DependencyResolveDetails details -> if (details.requested.group == 'org.apache.logging.log4j') { details.useVersion '2.15.0' } } } } // 라이브러리 추가 dependencies { // log4j implementation(platform("org.apache.logging.log4j:log4j-b.. Spring boot - Vue.js 연동하기 Spring boot와 Vue.js를 연동해봅니다. 이 문서에서는 Controller를 어디에 만드는지, cd 명령어는 어디에 입력하는지 등의 모든 과정을 설명하지는 않습니다. 결과물은 이쪽에 --> https://github.com/febdy/Spring-boot-vuejs Version Spring boot 2.0.3 Vue.js 2.5.16 Webpack 3.12.0 Gradle 4.x 최종 폴더 구조 예시 project │ ├ src (Spring boot) │├ main ││ ├ java ││ └ resources │└ test │ ├ frontend (Vue.js) │├ build │├ config │├ node_modules │├ src ││ ├ assets ││ │├ css ││ │├ im.. Spring Boot JSP View 설정하기 JSP의 위치 src/main/webapp/WEB-INF/jsp 기존 SpringBoot는 src/main/resources/teamplates에 타임리프가 들어가면 간단하게 조회된다. 그렇다면 JSP는 위치가 다른데 어떻게? 1. gradle, maven이면 디펜던시를 추가해야한다. gradle의 경우 compile("javax.servlet:jstl") compile("org.apache.tomcat.embed:tomcat-embed-jasper") - 필요하다면 버전을 추가한다, 필자의 경우 springboot 플러그인으로 알아서 버전을 찾아준다. maven의 경우 javax.servlet jstl org.apache.tomcat.embed tomcat-embed-jasper - maven도 마찬가.. Spring Annotation 1. HttpServletRequest, HttpServletResponse 2. HttpSession 3. Local - java.util.Locale 지역 정보 4. InputStream, Reader - HttpServletRequest의 getInputStream(), Reader 5. OutputStream, Writer - HttpServletResponse의 getOutputStream(), Writer - 서블릿 형태로 만들때 사용한다. 6. @PathVariable - @RequestMapping의 URL {} 부분의 패스 변수를 받는다. 만약 타입이 틀린 값이 들어오면 HTTP 400 - Bad Request 가 전달 된다. ? 1 2 @RequestMapping("/board/{id}.. Spring Framework: annotation 정리 #1 관련 문서 http://docs.spring.io/spring/docs 목차 @Component @Required @Autowired @Qualifier @Resource @Scope @PostConstruct @PreDestroy @Inject @Service @Repository @Controller @RequestMapping @RequestParam @SessionAttributes @ModelAttribute @RequestBody @ResponseBody @PathVariable 개발단계에서 사용빈도가 높은 어노테이션 위주로 정리. 목차에 없는 항목은 API 문서를 참고할 것. 구글링하는게속편한건함정 @Component 패키지: org.springframework.stereotype 버전: s.. Spring quartz 사용시 cronExpression Spring quartz 사용시 cronExpression 입니다. 월~금요일만 실행하고 싶어서 day-of-week 옵션을 설정했지만 day-of-week 를 잘못설정하면 이런 오류가 나더군요. Support for specifying both a day-of-week AND a day-of-month parameter is not implemented. 변경전 : 0 0 20 * * MON-FRI 변경후 : 0 0 20 ? * MON-FRI 아래는 기본 설정방법입니다. 초 0-59 , - * / 분 0-59 , - * / 시 0-23 , - * / 일 1-31 , - * ? / L W 월 1-12 or JAN-DEC , - * / 요일 1-7 or SUN-SAT , - * ? / L # 년(옵션) 1.. Spring Framework 레퍼런스 사이트 http://openframework.or.kr/framework_reference/spring/ver2.x/html/index.html 스프링의 관한 내용의 책 한권 분량이 들어있다. http://openframework.or.kr/ 이 사이트 컨텐츠의 한 부분인것 같은데... 자세한 건 아직 보지 않음... 이전 1 다음