[JSTL] 시간 분 가져오는 JSTL
0${hour} 시 0${min} 분
- frontend/Javascript
- · 2019. 10. 30.
0${hour} 시 0${min} 분
1. application.properties 수정 spring.mvc.view.prefix=/WEB-INF/views/ spring.mvc.view.suffix=.jsp spring.datasource.driver-class-name=com.mysql.jdbc.Driver spring.datasource.url=jdbc:mysql://localhost:3306/calandar_db spring.datasource.username=root spring.datasource.password=1234 2. build.gradle 수정 plugins { id 'org.springframework.boot' version '2.1.8.RELEASE' id 'io.spring.dependency-management..
1. build.gradle 설정 plugins { id 'org.springframework.boot' version '2.1.8.RELEASE' id 'io.spring.dependency-management' version '1.0.8.RELEASE' id 'java' id 'war' } group = 'com.example' version = '0.0.1-SNAPSHOT' sourceCompatibility = '1.8' repositories { mavenCentral() } dependencies { implementation 'org.springframework.boot:spring-boot-starter-web' providedRuntime 'org.springframework.boot:s..
1. com.example.demo.config 패키지 생성 2. 해당 패키지안에 TilesConfig.java 클래스 파일 생성 import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.web.servlet.view.UrlBasedViewResolver; import org.springframework.web.servlet.view.tiles3.TilesConfigurer; import org.springframework.web.servlet.view.tiles3.TilesView; @Configuration p..
1. 마우스 오른쪽 마우스 - New - Spring Starter Project 2. 해당 화면처럼 setting 3. Spring Web을 체크 4. application.properties에 해당 내용 작성 spring.mvc.view.prefix=/WEB-INF/views/ spring.mvc.view.suffix=.jsp 5. main/webapp main/webapp/WEB-INF main/webapp/WEB-INF/views 폴더 생성 6. 패키지 만들기 7. 방금 만든 패키지에 MainController.java 만들기 8. MainController.java 생성 import org.springframework.stereotype.Controller; import org.springfra..
//controller /* * 업로드 */ /** * File upload. * * @param req the req * @param res the res * @param uploadFile the upload file * @return the response entity */ @PostMapping(value={Url.COMMON.FILE_UPLOAD}) @ResponseBody public ResponseEntity fileUpload(HttpServletRequest req, HttpServletResponse res, MultipartFile uploadFile) { Map resultMap = new HashMap(); FileInfo _file; try { _file = fileService..