Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- docker
- 바이너리 카운팅
- cache
- jpa
- DDL
- Spring
- 인덱스
- SQL
- select_type
- redis
- VUE
- lambda
- hashcode
- equals
- MSA
- DI
- java
- jwt
- 생성자 주입
- KEVISS
- AOP
- 조합
- 재정의
- 열 속성
- stream
- 필드 주입
- StringBuilder
- Test
- static
- 테스트 코드
Archives
- Today
- Total
백엔드 개발자 블로그
구현(개발환경 설정) 본문
Git repository
- reposiotyr 생성
- local에 clone
Spring Boot
Spring Initializr
- [Spring Initializr](https://start.spring.io/) 에서 다운로드 후 Zip 압축풀기
- Gradle
- Java
- Spring Boot
- Meta data
- jar
- dependency
- Spring Web
- Lombok
- DB Driver
- Spring JPA
- Spring security
- thymesleaf
- 테스트 토구
- junit
- spock
- H2 database
- HAL
- git clone한 곳에 복붙
gitignore
- [gitignore.io](https://www.toptal.com/developers/gitignore) 에서 검색
- IntelliJ
- Java
- Gradle
- 프로젝트 .gitignore에 복붙
DB
- JPA가 자동 매핑 기능이 있어서 DB url 이 없으면 실행을 못함 -> exclude 처리
- @SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
IntelliJ
JDK
Project Structure - Project - edit
- Java 버전에 맞게 변경
Gradle
File - Settings - Build - Build Tools - Gradle
- Build and run using : IntelliJ IDEA
- Run tests using : IntelliJ IDEA
- Gradle JVM : java 버전에 맞게
lombok
Preferences > Build > Compiler > Annotaion Processors
- Enable annotaion processing 체크
plugin 설치
IntelliJ IDEA -> Preferences -> Plugins 에서 설치
- Lombok, Handlebars, Spock Framework 등 설치
- (Optional) Key Promoter X, Grep Console, Rainbow Brackets, GitToolBox
DB
- 테이블 생성
- 필요시 데이터 생성
Docker
설치
DockerFile 작성
docker-compose.yml 작성
.env 파일 작성
docker-compose 실행
Container 확인
Priofile 설정
application 실행해보기
- build.gradle dependency 잠시 주석처리
- jpa
- db
- spring security
- application 실행
Git push
- GUI / CLI 중 선택해서 설치
- id 연동
- repository 불러오기
- push 보내보기
- add
- commit
- push
'Programming > 구현' 카테고리의 다른 글
구현(기능) (0) | 2023.08.22 |
---|