목차
- springboot\workspace 폴더 생성
- JDK 11.0.1
- 환경 변수 설정
- yml 변경
- MariaDB 설치
springboot\workspace 폴더 생성
JDK 11.0.1
환경 변수 설정
Java Extension Pack 설치
Spring Book Extension Pack 설치
Java Server Pages(JSP) 설치
Lombok Annotations Support for VS code 설치
Ctrl + shift + P (New Project)
*
Tips
프로젝트명을 무조건 대문자로 쓰지 마라
소문자로 써라
자바에서 대문자는 클래스 밖에 없다
*
이제 폴더를 firstapp으로 잡읍시다.
가끔 jdk 11을 인식 못하는데 이럴 땐 다시 켜봅시다
Visual Studio Code에서는
파일을 만들고 확장자 이름을 적어주어야 합니다.
이제 firstapp에서 HomeController를 만들어 줍니다.
아래와 같이 설정하면
저장 시 자동으로 정렬을 해줍니다!
*
Ctrl + Enter
바로 다음 줄로 넘기는 것
*
yml로 변경합니다
이렇게 하고 실행을 해주고 url에 localhost:8000/home으로 들어가면
home을 보여줍니다!
Git 설치
Git - Downloads
Downloads macOS Windows Linux/Unix Older releases are available and the Git source repository is on GitHub. GUI Clients Git comes with built-in GUI tools (git-gui, gitk), but there are several third-party tools for users looking for a platform-specific exp
git-scm.com
git clone
dbapp으로 잡아봅니다
MariaDB 다운
https://mariadb.com/downloads/
Download MariaDB Products & Tools | MariaDB
Download the latest versions of MariaDB Platform, MariaDB Community Server, Cloud Database (SkySQL), ColumnStore and MaxScale.
mariadb.com
MariaDB를 설치하기 전에 MySQL이 백그라운드에서 실행되면 MariaDB가 실행되지 않습니다.
작업 관리자 -> 서비스를 확인해서 MySQL이 실행되지 않게 속성에 들어가서 설정해둡니다.
(그렇게 하지 않고 작업 관리자에서만 종료시키고 컴퓨터를 다 시키면
또다시 백그라운드에서 실행되기 때문에, 다음과 같이 설정을 해두는 것입니다)
아래는 예시 사진입니다.
MariaDB 설치
Next하다가 아래에서 신중하게 합니다
UTF-8 꼭 해줘야 합니다!
DB를 만들어줍니다
root에서 쿼리문을 실행합니다
이제 실행을 해봅시다.
이렇게 하지 않으면 DB가 만들어지지 않은 상태이기 때문에
프로젝트가 실행이 되지 않습니다.
이제 DB설정을 해두었기 때문에 프로젝트가 실행이 됩니다.
(그전에 yml에서 create로 바꿔서 DB를 만들어준다)
*
링크하고 목적 파일을 만들고 실행 -> build
*
Reference
Archived OpenJDK GA Releases
Archived OpenJDK General-Availability Releases This page is an archive of previously released builds of the JDK licensed under the GNU General Public License, version 2, with Classpath Exception. WARNING: These older versions of the JDK are provided to he
jdk.java.net
Git - Downloads
Downloads macOS Windows Linux/Unix Older releases are available and the Git source repository is on GitHub. GUI Clients Git comes with built-in GUI tools (git-gui, gitk), but there are several third-party tools for users looking for a platform-specific exp
git-scm.com
Download MariaDB Products & Tools | MariaDB
Download the latest versions of MariaDB Platform, MariaDB Community Server, Cloud Database (SkySQL), ColumnStore and MaxScale.
mariadb.com