소프트웨어/Spring Boot

    [spring boot] intro

    1. spring 배경EJB(Enterprise JavaBeans)에서 문제가 되었던 부분을 해결하기 위해 비 침투적인(non-invasive) 방식을 도입하였고, 엔터프라이즈 애플리케이션 개발을 좀 더 쉽게 하기 위한 목적으로 만듦. ref. https://scroogy.atlassian.net/wiki/spaces/SPRING/pages/8847424 이 때, 오픈 소스 프로젝으로 스프링이 나왔음. 스프링은 ejb 를 쓰지 않고도 엔터프라이즈급 어플리케이션 개발이 가능하도록 하기 위해 나온 것임. (ejb3 스펙은 사용하기에 많이 쉬워졌지만 이미 그 이전에 스프링이 나오면서 널리 확산되어 쓰이기 시작함) 결국 당시에 복잡했던 ejb 를 사용하지 않아도 되고, 그냥 j2se 를 사용하면서 트랜젝션과 보..

    [Spring Boot] maven install and build.

    (Ubuntu 16.04 64bit) 1. install maven $ sudo apt-get install maven$ mvn -vApache Maven 3.3.9Maven home: /usr/share/mavenJava version: 1.8.0_91, vendor: Oracle CorporationJava home: /usr/lib/jvm/java-8-oracle/jreDefault locale: en_US, platform encoding: UTF-8OS name: "linux", version: "4.4.0-28-generic", arch: "amd64", family: "unix" 2. build in target folder, $ mvn install or$ mvn clean installo..

    [Spring Boot] maven install and build.

    (Ubuntu 16.04 64bit) 1. install maven $ sudo apt-get install maven$ mvn -vApache Maven 3.3.9Maven home: /usr/share/mavenJava version: 1.8.0_91, vendor: Oracle CorporationJava home: /usr/lib/jvm/java-8-oracle/jreDefault locale: en_US, platform encoding: UTF-8OS name: "linux", version: "4.4.0-28-generic", arch: "amd64", family: "unix" 2. build in target folder, $ mvn install or$ mvn clean installo..

    [Spring Boot] spring boot java.lang.RuntimeException: java.lang.reflect.InvocationTargetException

    1. error messagespring boot java.lang.RuntimeException: java.lang.reflect.InvocationTargetException 2. 해결방법어딘가에 떠있는 서버를 닫는다.

    [Spring Boot] Create and Play project

    Project를 생성하고, 뭐라도 만들면서 이해해보자. Reference : https://spring.io/guides/gs/spring-boot/ 1. Create project $ spring init -d=web --build=gradle demo 2. Run tutorial Reference : https://spring.io/guides/gs/spring-boot/ 느낀점 : spring boot는 @이로 control이 되는구나!심지어 @ + @ = @이라는 공식도 존재한다. main은 하나여야한다.만약에 main을 바꾸게 되면, test의 폴더의 내용도 바꿔야 한다. 3. Build ./gradlew build & java -jar build/libs/webdemo-0.0.1-SNAPSHO..

    [Spring Boot] init project

    1. init project 1) 도움말을 보는 것은 spring help [command]이다. ex) init manual$ spring help init spring init - Initialize a new project using Spring Initializr (start.spring.io) usage: spring init [options] [location] Option Description ------ ----------- -a, --artifactId Project coordinates; infer archive name (for example 'test') -b, --boot-version Spring Boot version (for example '1.2.0.RELEASE') --b..

    [Spring Boot] Intro

    (Ubuntu 16.04 64bit) 1. What is 'Spring Boot'? main home page : http://projects.spring.io/spring-boot/ 2. install default, installing java 2-1) install gradlesudo apt-get install gradle(ref : http://java.ihoney.pe.kr/254) 2-2) install spring-cli 2-3) install sdkmanPlease open a new terminal, or run the following in the existing one: source "/home/hklee/.sdkman/bin/sdkman-init.sh" error solution(..

    [sdkman] install, error solution (fail to download)

    현상)Prime the config file...Download script archive... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0100 637 100 637 0 0 466 0 0:00:01 0:00:01 --:--:-- 931Download file : http://api.sdkman.io/res?platform=Linux&purpose=installExtract script archive...[/home/hklee/.sdkman/tmp/res-3.3.4.zip] End-of-cen..