Notice
Recent Posts
Recent Comments
Link
«   2024/05   »
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 29 30 31
Archives
Today
Total
관리 메뉴

개발자되기 프로젝트

프로젝트 세팅 본문

Project/블로그 게시판 만들기

프로젝트 세팅

Seung__ 2021. 10. 3. 13:27

1. Devtools


  • html 수정을 자주할 텐데 매번 서버 다시 띄우기 너무 귀찮음.
  • debTools 사용하면 html 수정 후 recompile만 하면 바로 반영됨.
  • build.gradle
implementation 'org.springframework.boot:spring-boot-devtools'

 

 

2. H2 Database


  • DB 파일 생성
    • jdbc:h2:~/blog 최초 접근
    • user 폴더 경로에 blog.mv.db파일 생성 확인
  • 네트워크 모드로 접근
    •  jdbc:h2:tcp://localhost/~/blog
    • 해당 url로 접근하여 사용하면됨.
  •  dependancy  
implementation 'org.springframework.boot:spring-boot-starter-jdbc'

 

3. application.yml


spring:
  datasource:
    url: jdbc:h2:tcp://localhost/~/blog
    username: sa
    driver-class-name: org.h2.Driver

  jpa:
    hibernate:
      ddl-auto: create
    properties:
      hibernate:
        format_sql: true


logging.level:
  org.hibernate.SQL: debug

 

4. Lombok


  • Enable annotation processing이 체크되어 있어야 lombok 정상적으로 사용 가능.

 

 

5. Gradle 설정


  • Build and run using, Runb tests using 설정ㅇ르 intelliJ로 변경하자.
  • Gradle 보다 조금 빠르다.

 

 

6. 잘 돌아가는지 test


  • h2 database도 잘 돌아가고
  • spring도 잘 돌아간다.

 

준비 끝

'Project > 블로그 게시판 만들기' 카테고리의 다른 글

회원 도메인 개발  (0) 2021.10.03
회원 도메인 설계  (0) 2021.10.03
도메인 분석 설계  (0) 2021.10.03
프로젝트 생성  (0) 2021.10.02
프로젝트 주제 선정  (0) 2021.10.02
Comments