study/springboot

001. 개발환경 설정

까오기 2022. 5. 11. 11:16

1. 이클립스 설치 

 - 최신 설치 

2. 플러그인 추가

 - Gradle IDE Pack 3.8.x + 1.0.x

 

 - SpringSource Tool Suite (STS) for Eclipse

- properties editor 추가 

Help > Install New Software... > Add...

Name : properties editor

Location : https://propedit.osdn.jp/eclipse/updates/

목록에서 Properties editor만 선택.

3. Mysql 설치 

 - DB 작업

create database `dev_kkaok` character set utf8 collate utf8_general_ci;

create user 'dev_kkaok_user'@'%' identified by '****';

grant all privileges on *.* to 'dev_kkaok_user'@'%';

 

grant all privileges on dbname.* to 'dev_kkaok_user'@'%';

create user 'dev_kkaok_user'@'localhost' identified by '****';

grant all privileges on *.* to 'dev_kkaok_user'@'localhost';

grant all privileges on dbname.* to 'dev_kkaok_user'@'localhost';

 

SET PASSWORD FOR 'dev_kkaok_user'@'localhost' = PASSWORD('****');

SET PASSWORD FOR 'dev_kkaok_user'@'%' = PASSWORD('****');

 

FLUSH PRIVILEGES;

4. Workbench 설치 

5. Eclipse 설정

5-1. Insert spaces for tabs 

 

 

5-2. Workspace UTF-8 설정

 

5-3. CSS, HTML, JSP UTF-8 설정

 

5-4. JDK 설정 

5-5. Font 설정

나눔고딕코딩 다운로드 : https://github.com/naver/nanumfont/releases 

 

5-6. formatter 설정 (자신 스타일과 잘 안 맞으면 스킵)

구글 스타일 다운로드 : https://github.com/google/styleguide

import 버튼 클릭하고 저장된 "eclipse-java-google-style.xml"을 선택한다. 

 

5-7. tab to space

Window >> Preferences >> java >> Code Style >> Formatter >> edit button >> Indentation 체크, 이름 바꾸고 OK 버튼 클릭 

 

그외 처리 

Window-Preferences-Java-Editor-Templates 편집

test import

import static org.hamcrest.CoreMatchers.*;

import static org.junit.Assert.*;

import static org.junit.matchers.JUnitMatchers.*;

import static org.mockito.Matchers.*;

import static org.mockito.Mockito.*;

$

Key bind 처리 Copy Line, 

 

Validation Disable All

 

6. 롬복설치

https://projectlombok.org/download