2020년 1월 24일 금요일

[Spring] Getting Started

1. Spring Initializr 사용
 - (spring-web), gradle
 https://start.spring.io/

2. STS에서 gradle import
 - (spring-web)


3. 코딩 후 run as(debug as) => Spring Boot App
 - application.properties에서
   server.port = 8081로 수정 후 실행


※ https://spring.io/guides/gs/spring-boot/



4. TODO
 - MVC => https://spring.io/guides/gs/serving-web-content/

[즐겨찾기] 영어

 o 학말영
  - https://hakmalyoung.tistory.com/

 o 영어 너 도대체 모니?
  - https://ilikeen.tistory.com/


2018년 9월 9일 일요일

[GCP] CentOS에 JSP 서비스환경 구축

▣ 순서
 1) 구글 클라우드 플랫폼 가입
    URL : https://cloud.google.com/

 2) 구글 컴퓨트 엔진 VM 인스턴스 만들기 (CentOS7 64비트)
    URL : https://iyabong.blogspot.com/2018/08/gcp-vmcentos.html

 3) VM인스턴스 접속환경 설정(SSH 및 SCP)
    URL : https://iyabong.blogspot.com/2018/08/gcp-vmcentos-ssh-scp.html

 4) wget, unzip 설치
   # yum install wget
   # yum install unzip

 5) JDK 설치
    참조 : https://blog.hanumoka.net/2018/04/30/centOs-20180430-centos-install-jdk/

 6) 톰캣 설치
    참조 : http://jeongyd.tistory.com/51
    ※ 추가조치 : GCP 방화벽에 톰캣 포트 허용 설정

 7) Oracle 11g XE 설치
    참조 : http://www.davidghedini.com/pg/entry/install_oracle_11g_xe_on
            http://egloos.zum.com/zicman/v/3032298
            http://blog.naver.com/PostView.nhn?blogId=forioso&logNo=10152094221

    위 가이드 Step4까지 진행

    ※ 추가조치 : GCP 방화벽에 오라클 포트(웹 및 리스너) 허용
                     sqlplus sys계정으로 접속하여 hr account unlock

 8) DBConnection 설정 및 테스트
String driver = "oracle.jdbc.driver.OracleDriver"; // oracle JDBC 드라이버 문자열 상수
String dbUrl = "jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=IP주소)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=xe)))";

String dbUser = "hr";
String dbPwd = "hr";



oracle JDBC Driver Testing...