Java 6

JSP 사용 시 no java compiler available 에러

Java 에 Open Source 프로젝트를 쓰다보면 늘상격는 예상치 못한 에러..no java compiler available 뭐냐 이건.. JDK 경로 지정해줘도 안되고.. 답답 ㅠㅠ 구글링 하다보니- 런타임을 JDK 로 하면 된다거나- 뜬금없이 ant 추가하면 된다거나- ecj 를 추가하면 된다거나.. (다행이 난 이걸로 해결) 마음 같아선 자바 없어졌으면 ... http://www.mkyong.com/spring-boot/spring-boot-web-jsp-no-java-compiler-available/

Java 2017.04.26

Spring Boot 프로젝트 시작 (JSP)

Spring Boot 프로젝트를 만든 후 JSP 를 쓰려면1) jstl, tomcat-embed-jasper 추가2) application.properties 에 spring.mvc.view.prefix: /WEB-INF/jsp/ spring.mvc.view.suffix: .jsp 3) jsp 위치src/main/webapp/WEB-INF/jsp여기에 JSP 파일 위치하도록, 나머지 css, js 파일 등은 static 에 위치시키면 될듯.. 4) non-jsp, html, css 등 파일 위치 index.html 를 예를 들면src/main/resources/META-INF/resources/index.html src/main/resources/resources/index.html src/main/re..

Java 2016.01.14

spring boot + mybatis 연결

spring 이 아닌 spring boot 의 경우 아직 starter 가 없어서 그런지 직접 코드로 연결 시켜야 하는데 xml 설정 파일도 없고 하여 코드로 연동 시켰다. // 폴더 구조 [java] -[ROOT] (네임스페이스의 최 상위) - DatabaseConfig.java - MyBatisProperties.java - [controller] - [domain] - [service] - [persistence] - mapper.java - abcMapper.java [java] -[resource] - application.properties - mybatis.xml - [META_INF] - [mapper] - abcMapper.xml 볼드 처리된 파일이 작업 대상이다 // resource/a..

Java 2015.04.16

스프링 부트 - MS SQL Server DB 접속

1) JDBC 드라이버 찾기 http://www.microsoft.com/ko-KR/download/details.aspx?id=11774 에서 JDBC 드라이버를 다운받는다. 버전이 4.1 과 4.0 이 있는데 MS SQL Server 2008 이후 버전의 서버에 접속하는 경우 4.1 을 이용해야 한다 그 외는 4.0 을 받는다. 2) 프로젝트에 jdbc 파일 추가 Eclipse 등에서 프로젝트 속성에 Build Path 에 Library 로 추가하면 끝. 자세한 설명은 생략한다. ㄷㄷ.. 3) DB 접속 properties (application.properties 파일) spring.datasource.url=jdbc:sqlserver://서버주소 spring.datasource.username=로..

Java 2015.03.18