1. pom.xml 에 dependancy 추가. com.navercorp.lucy lucy-xss-servlet 2.0.0 2. bean 추가. (context-common.xml) 3. filter 추가.url-pattern 정확히 입력 /*, *.do 로 했을 때 파일업로드가 안됨. multipartFilter org.springframework.web.multipart.support.MultipartFilter multipartFilter /aaa/uploadA.do /bbb/uploadB.do xssEscapeServletFilter com.navercorp.lucy.security.xss.servletfilter.XssEscapeServletFilter xssEscapeServletFilter..
public static void main(String[] args) { Map map = new HashMap(); System.out.println("==============get properties=============="); map = getMyProperties("/test/db.properties"); } //프로퍼티스 파일 읽어. public static Map getMyProperties(String propertiesFile){ Properties properties = new Properties(); Map map = new HashMap(); try { properties.load(new FileInputStream(propertiesFile)); for (String key : ..
라이브러리 추가jdbc compile('org.springframework.boot:spring-boot-starter-jdbc') compile('mysql:mysql-connector-java')mybatis compile("org.mybatis.spring.boot:mybatis-spring-boot-starter:1.1.1") compile("org.mybatis:mybatis-spring") compile("org.mybatis:mybatis") /dashboard/src/main/resources/application.properties ------------------------------------------------------------------ spring.datasource.dri..
/build.gradle에 라이브러리 추가 ------------------------------------------------------ compile('org.apache.tomcat.embed:tomcat-embed-jasper') compile('javax.servlet:jstl') ------------------------------------------------------ Refresh Dependencies 폴더 생성 : src/main 아래에 webapp/WEB-INF/view 생성후 /src/main/resources/application.properties 수정 -------------------------------------------------------------------..
작업을 하다보면 DB 접속이 제대로 되는지 확인 해봐야 할 때가 있다.그때를 위해 만든 소스이다. 패키지 이다. mysql connector, ojdbc 라이브러리를 등록해줘야 한다. 로컬 테스트 String[] args 를 임의로 넣고 테스트 해봤다 (테스트후 임의의 값으로 변경해서 스샷찍음)콘솔에 정상 접속 된다는 결과가 보인다. 매번 이클립스를 띄울수 없으니 jar 파일로 익스포트 해서 사용해본다. 사용 테스트 화면 Check.java 소스는 첨부해놓도록 한다. 끝.
/** * 문자열 검색 */String str = "abc.txt";//시작단어 검색 - startsWithif(str.toLowerCase().startsWith("ab")){System.out.println("ab로 시작");}//끝단어 검색 - endsWithif(str.toLowerCase().endsWith("xt")){System.out.println("xt로 종료");}//중간단어 검색 - indexOfif(str.toLowerCase().indexOf("bc") != -1){System.out.println("bc가 들어감");}
- Total
- Today
- Yesterday
- 시즌3
- 수원
- java
- 오토핫키
- 배드워즈
- nginx
- 설치
- 단축키
- 전자정부프레임워크
- 베트남
- 호이안
- 다운로드
- 설정
- eGovFramework
- 시즌패스
- download
- 메소드 제한
- 구글 플레이 게임즈
- 달빛조각사
- Spring Boot
- mariaDB
- lineage2m
- mysql
- autohotkey
- Spring
- 로블록스
- 윈도우
- tomcat
- 라즈베리파이
- 블루스택
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |