STS 로 Spring Boot 프로젝트 만들기. 3) Thymeleaf 를 이용한 웹 페이지 만들기

참고서적 : [길벗] 스프링부트 프로그래밍 입문 - 쇼다 츠야노 pom.xml에 Thymeleaf 추가하기 pom.xml의 Dependencies 탭을 열고 'Add' 버튼을 눌러 추가 하겠습니다. 간단하게 Group Id와 Artifact Id 만 입력 하고 OK 버튼을 누른 뒤, 저장 합니다. Mac의 경우는 Command + S, Windows 라면 Ctrl+S 커맨드를 입력 해 저장을 한다면, 빌드가 되는걸 우측 하단에서 확인 할 수 있습니다. Dependency Hierarchy 에서 위와 같이 필요한 dependency 들이 들어와 있는 것을 확인 할 수 있습니다. 따로 버전도 입력하지 않아서 정말 편합니다. pom.xml 에도 위와 같이 입력 된 것을 확인 할 수 있습니다. 사..

Programming/JPA ⁄ Spring 2021.07.09
STS 로 Spring Boot 프로젝트 만들기. 2) RestController 활용해 API 컨트롤러 만들기

STS 로 Spring Boot 프로젝트 만들기. 2) RestController 활용해 API 컨트롤러 만들기 참고서적 : [길벗] 스프링부트 프로그래밍 입문 - 쇼다 츠야노 https://shanepark.tistory.com/157 STS 로 Spring Boot 프로젝트 만들기. 1) STS설치 및 프로젝트 생성 STS 로 Spring Boot 프로젝트 만들기. 1) STS설치 및 프로젝트 생성 참고서적 : [길벗] 스프링부트 프로그래밍 입문 - 쇼다 츠야노 아래 페이지에서 본인에게 맞는 STS 를 다운 받습니다. 저는 Eclipse용 shanepark.tistory.com 위의 글에 이어지는 내용 입니다. base Package 에 하나의 Application.java 파일이 생성 되어 있는데요..

Programming/JPA ⁄ Spring 2021.07.09
STS 로 Spring Boot 프로젝트 만들기. 1) STS설치 및 프로젝트 생성

STS 로 Spring Boot 프로젝트 만들기. 1) STS설치 및 프로젝트 생성 참고서적 : [길벗] 스프링부트 프로그래밍 입문 - 쇼다 츠야노 아래 페이지에서 본인에게 맞는 STS 를 다운 받습니다. 저는 Eclipse용 STS4를 다운 받도록 하겠습니다. https://spring.io/tools Spring Tools 4 is the next generation of Spring tooling Largely rebuilt from scratch, Spring Tools 4 provides world-class support for developing Spring-based enterprise applications, whether you prefer Eclipse, Visual Studio Co..

Programming/JPA ⁄ Spring 2021.07.09
Groovy로 Spring boot 어플리케이션 개발해보기. 2) 템플릿 작성하기

Groovy로 Spring boot 어플리케이션 개발해보기. 2) 템플릿 작성하기 참고서적 : 스프링부트 프로그래밍 입문 - 쇼다 츠야노 [길벗] html{ head{ title('index page') } body{ h1('hello') p('world!') } } VS코드를 이용해 위와 같은 template을 작성 했습니다. 이후 index.tpl 이라는 이름으로 저장합니다. 같은 경로에 templates 라는 폴더를 만들고 해당 폴더에 저장 해 줍니다. @Controller class App{ @RequestMapping("/") @ResponseBody def home(ModelAndView mv){ mv.setViewName("index") mv } } app.groovy 파일의 코드 입니다. ..

Programming/JPA ⁄ Spring 2021.07.09
Mac) Groovy로 Spring boot 어플리케이션 개발해보기. 1) Hello world

Groovy로 Spring boot 어플리케이션 개발해보기. > Mac OS X를 기준으로 설명하지만, windows를 사용하는 분들도 수동 다운로드를 한다면 비슷하게 진행 할 수 있지 않을까 생각됩니다. https://docs.spring.io/spring-boot/docs/current/reference/html/getting-started.html#getting-started.installing.cli Getting Started If you are getting started with Spring Boot, or “Spring” in general, start by reading this section. It answers the basic “what?”, “how?” and “why?” ques..

Programming/JPA ⁄ Spring 2021.07.08