[1] Spring Boot 웹프로젝트 만들기
2019. 9. 28. 12:57
스프링
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..
[Spring] 파일업로드
2019. 7. 19. 14:04
스프링
//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..
[Spring] 저장된 파일 이미지 보여주기
2019. 7. 19. 14:00
스프링
Controller.java //Controller //첨부파일 image 보여주는 api @RequestMapping(value="/api/img/print/{idx}" , method = {RequestMethod.GET}) public ModelAndView getPublicImage(@PathVariable("idx") String idx, HttpServletRequest req, HttpServletResponse res) { FileInputStream fis = null; File file = fileService.getFileObject(idx); ModelAndView mav = new ModelAndView(); try { mav.setView(new AttachDownloadView..
tiles-single jsp 페이지 ajax
2019. 5. 28. 09:36
스프링
tiles-single.xml ajax $.ajax({ type : 'GET', url : "/cust/find-corp-list-data", data : params, dataType : 'html', contentType : "application/json", success : function(data){ console.log(data); $(".tbls1").remove(); $(".paginate").remove(); $("#searchDiv").after(data); //전체 체크박스 클릭 $(".allBtn").click(function(){ if($(".allBtn").prop("checked")){ $(".chk").prop("checked", true); } else{ $(".chk")...
[Spring] lombok 설치
2019. 5. 20. 19:12
스프링
https://projectlombok.org/download Download projectlombok.org 설치후 install / update sts.exe path 프로젝트 clean
자동 주석 설정
2019. 4. 26. 18:32
스프링
window > Preferences > java > Code Style > Code Templates Comments > Files ## 위의 위치에서 수정해도 안될때는 ## 해당 프로젝트 > properties 에서 설정을 변경해준다 Patten Class 에 적용 - Comment > Types /** * FileName : ${file_name} * Comment : * @version : 1.0 * @author : sunshiny * @date : ${date} */ --------------------------- Method 에 적용 - Comment > Methods /** * Comment : * @version : 1.0 * @tags : ${tags} * @date : ${date}..
[Spring] 톰캣 설치 및 설정
2019. 3. 30. 15:19
스프링
https://tomcat.apache.org/download-80.cgi Apache Tomcat® - Apache Tomcat 8 Software Downloads Welcome to the Apache Tomcat® 8.x software download page. This page provides download links for obtaining the latest versions of Tomcat 8.x software, as well as links to the archives of older releases. Users of Tomcat 8.0.x should be aware that it has reac tomcat.apache.org
[Spring] Mysql 다운
2019. 3. 30. 14:59
스프링
https://dev.mysql.com/downloads/windows/ MySQL :: MySQL on Windows MySQL on Windows MySQL provides you with a suite of tools for developing and managing business critical applications on Windows. MySQL Installer provides an easy to use, wizard-based installation experience for all MySQL software on Windows. MySQL offers i dev.mysql.com 앞서 visual studio 2015 ++ 어쩌구 alert이 뜨시는 분들은 visual studio 20..
[Spring] sts 다운
2019. 3. 30. 14:20
스프링
https://spring.io/tools3/sts/all Spring Tool Suite™ 3 (STS 3) Download page Use one of the links below to download an all-in-one distribution for your platform. Choose either a native installer or simple archive, they contain equivalent functionality spring.io -> 실행이 되지않는다면 jdk 환경변수가 잡히지 않아서 그럴수도 있으므로 앞에 jdk 환경변수를 잡고 실행하시면 됩니다.
[Spring] JDK 환경변수 잡기
2019. 3. 30. 14:11
스프링
해당 홈페이지에서 Jdk를 받습니다. https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html Java SE Development Kit 8 - Downloads Java SE Development Kit 8 Downloads Thank you for downloading this release of the Java™ Platform, Standard Edition Development Kit (JDK™). The JDK is a development environment for building applications, applets, and components using the Java programming ..