| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | |||
| 5 | 6 | 7 | 8 | 9 | 10 | 11 |
| 12 | 13 | 14 | 15 | 16 | 17 | 18 |
| 19 | 20 | 21 | 22 | 23 | 24 | 25 |
| 26 | 27 | 28 | 29 | 30 | 31 |
- jQuery
- JSON
- Git
- Linux
- key
- lambda
- Python
- PostgreSQL
- Windows
- html
- jsp
- port
- Java
- STS
- JS
- insert
- File
- JavaScript
- list
- Session
- spring
- SQL
- regExp
- MAP
- table
- dict
- css
- regex
- Oracle
- db
- Today
- Total
목록spring (4)
step1
# xml 설정 task 관련 추가 설정 # Annotation 사용 import import org.springframework.scheduling.annotation.Scheduled; // every day at 00:00 @Scheduled(cron="0 0 0 * * *") public void dailyScheduler(){ } # Cron Expressions Seconds Minutes Hours Day Month DayOfWeek (Year) Characters Meaning * all - range , and / increments (starting point / increments) - Day of Week : 0-7 0 : Sun 1 : Mon .. 6 : Sat 7 : Sun
HttpSession session = request.getSession(true); Enumeration attrs = session.getAttributeNames(); while(attrs.hasMoreElements()) { String attr = (String) attrs.nextElement(); System.out.println(attr + " : " + session.getAttribute(attr)); } *** jsp 에서 session data 출력 var role = ''; // session attribute name console.log(role);
import java.util.Enumeration; @RequestMapping(value = { "url.do" }, method = RequestMethod.POST) public String showView(Model model, HttpServletRequest request, HttpServletResponse response) { // HERE System.out.println("##### print httprequest #####"); Enumeration params = request.getParameterNames(); while(params.hasMoreElements()) { String name = (String) params.nextElement(); System.out.prin..
1. 다운로드 및 설치 1.1. https://projectlombok.org/download 에서 jar 파일 다운로드 Download projectlombok.org 1.2. 다운 경로에서 실행 java -jar lombok.jar 1.3 IDE 선택하여 install/update *IDE 안 뜰 경우 specify location 해서 직접 지정해 주자 => eclipse 설치 경로에 lombok.jar 생길 것 2. dependency 추가 @pom.xml org.projectlombok lombok 1.18.24 provided ==> @Data 등 lombok library의 annotation 사용 가능!