본문 바로가기

Spring Boot5

SpringBoot-Vue project 1 - 프로젝트 생성 node.js와 vue-cli 설치 node.js 설치(LTS 버전으로 설치) : https://nodejs.org/ko/ node 설치 후 터미널을 열어서 vue-cli를 설치한다. JDK 설치 JDK 11 설치 : https://www.oracle.com/java/technologies/javase-jdk11-downloads.html SpringBoot 프로젝트 생성 인텔리제이로 새 프로젝트 생성 프로젝트를 Spring Initializr로 선택하고, Project SDK를 위에서 설치한 JDK로 설정한 후 다음으로 넘어간다. Artifact를 바꾸고 싶은대로 변경하고 Java Version을 11로 설정하고 넘어간다. dependency를 Web - Spring Web으로 선택하고 넘어간다. 프로.. 2020. 3. 24.
Spring boot - 4. JPA 설정 먼저 MySQL 무료 버전인 커뮤니티 버전을 설치한다. https://dev.mysql.com/downloads/mysql/ 로 가서 MySQL Community Server를 설치한다. MySQL :: Download MySQL Community Server Select Operating System: Select Operating System… Microsoft Windows Ubuntu Linux Debian Linux SUSE Linux Enterprise Server Red Hat Enterprise Linux / Oracle Linux Fedora Linux - Generic Oracle Solaris macOS FreeBSD Source Code Select OS Version: All Wi.. 2020. 3. 22.
Spring boot - 3. Rest API POST 구현하기 이전 포스트 - 2020/03/19 - [개발 관련 지식/JAVA] - Spring boot - 2. REST API GET 구현하기 controller 패키지에 PostController.java를 만든다. PostController.java 안에 코드를 Post 방식의 메소드를 만든다. package com.example.test.controller; import com.example.test.model.InfoVO; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.a.. 2020. 3. 20.
Spring boot - 2. REST API GET 구현하기 이전 포스트 - 2020/03/19 - [개발 관련 지식/JAVA] - Spring boot - 1. 프로젝트 만들기 - IntelliJ Spring boot 프로젝트에 Controller 패키지를 만들자 생성한 controller 패키지 안에 controller 자바 파일을 만들자. GetController라는 이름으로 만들었다. 그리고 GetController.java 안에 다음 코드를 넣자. package com.example.test.controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.s.. 2020. 3. 19.
Spring boot - 1. 프로젝트 만들기 - IntelliJ 먼저 JDK와 IntelliJ를 설치하자. JDK 11 버전 https://www.oracle.com/java/technologies/javase-jdk11-downloads.html Java SE Development Kit 11- - Downloads Java SE Development Kit 11 Downloads Thank you for downloading this release of the Java™ Platform, Standard Edition Development Kit (JDK™). The JDK is a development environment for building applications, and components using the Java programming language... 2020. 3. 19.