Math.min 두수 중 더 작은수 출력 System.out.println(Math.min(10, 100)); 10 Math.max 두수 중 더 큰수 출력 System.out.println(Math.max(10, 100)); 100
정적 컨텐츠 방식 static - hello-static.html 생성 hello-static.html 정적 컨텐츠 입니다. MVC 방식 HelloController package hello.hellospring.controller; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestParam; @Controller public class HelloController { @GetMapping("hell..
cmder 설치 https://aamoos.tistory.com/253 cmder 설치 — 일라얌의개발블로그 aamoos.tistory.com Window일 경우 cmder 실행 - 빌드할 프로젝트 폴더 - gradlew.bat build 입력 빌드가 잘안되면 gradlew.bat clean build -> 아래에 build 폴더가 생성된거를 볼수 있음 build/libs 폴더 안에 접속해서 java -jar 빌드된 jar파일.jar를 입력 ex) java -jar hello-spring-0.0.1-SNAPSHOT.jar -> 해당 jar가 8080 port로 start된것을 볼수 있음 서버 stop ls -arlth
해당 url 접속 https://cmder.app/ Cmder | Console Emulator Total portability Carry it with you on a USB stick or in the Cloud, so your settings, aliases and history can go anywhere you go. You will not see that ugly Windows prompt ever again. cmder.app Download Full 클릭 받은 파일에서 Cmder 파일 열기 cmd 콘솔이 리눅스처럼 사용할수 있게 됨
resources - static - index.html 생성 index.html Hello hello controller - hello 찍기 1. controller 패키지 만들고 안에 HelloController 생성 2. resources - templates 폴더안에 hello.html 생성 HelloController.java package hello.hellospring.controller; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.GetMapping; @Controller public class ..
String str = "Hello World"; char[] charArr = str.toCharArray(); [0] = H [1] = e [2] = l [3] = l [4] = o [5] = " " [6] = "W" [7] = "o" [8] = "r" [9] = "l" [10] = "d"