본문 바로가기

Spring57

Failed to convert value of type 'java.lang.String' to required type 'java.util.Date' [Error]Failed to convert value of type 'java.lang.String' to required type 'java.util.Date' : Date 타입을 (jsp페이지에서) 파라미터로 받아올때 @RequestMapping(value="/fetch" , method=RequestMethod.GET) public @ResponseBody String fetchResult(@RequestParam("from") @DateTimeFormat(pattern="yyyy-MM-dd") Date fromDate) { //Content goes here }Yes, it's simple. Just add the DateTimeFormat annotation. 출처 : https://stack.. 2019. 8. 19.
No qualifying bean of type ~ [Error] No qualifying bean of type ~ >>빈으로 등록되지 않은 객체를 주입하려할 때 발생하는 에러 Error creating bean with name 'chartController': Unsatisfied dependency expressed through field 'dto'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.example.diary.model.chart.dto.ChartDTO' available: expected at least 1 bean which qualifies as autowire can.. 2019. 8. 19.
Spring project01 - 3. 달력 구현 1. 단순 달력 (날짜별 기록 볼 수 있도록) 2. 기간 선택 제이쿼리 datapicker 달력 위젯 (특정 기간의 기록을 검색할 수 있도록) 1. 단순 달력 (날짜별 기록 볼 수 있도록) 작고 깔끔한 달력 소스 (js)출처 : http://phpnz.blogspot.com/2013/09/blog-post_7388.html 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879document.write('');document.write('td {font-size:12px; font-family:.. 2019. 8. 14.
스프링 시큐리티 사용자 정보 가져오기 출처 : https://otrodevym.tistory.com/entry/Spring-Security%EC%97%90%EC%84%9C-%EC%82%AC%EC%9A%A9%EC%9E%90-%EC%A0%95%EB%B3%B4-%EA%B0%80%EC%A0%B8%EC%98%A4%EA%B8%B0 1. JSP 페이지 home.jsp 안녕하세요. ${user_id } 2. SpringContextHolder Authentication auth = SecurityContextHolder.getContext().getAuthentication(); String user_id = auth.getName(); 3. Contoller @RequestMapping("/")public String test(Principal prin.. 2019. 8. 13.