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
- reference
- Hashtable
- abstractclass
- concreteclass
- fuction
- MSA
- object
- value
- 콘크리트클래스
- string
- garbagecollection
- ALTER
- 추상클래스
- eclipse
- Polymorphism
- super
- run()
- hashCode
- constantnumber
- 생성자
- overload
- arguments
- override
- start()
- methodArea
- 객체형변환
- class
- Eureka
- hamobee
- Vector
Archives
- Today
- Total
뇌운동일지
[ 뭐할지 고민하는 오리 ] 책보고 따라하기 본문
이제 뭐할지 고민중
책 있는거나 따라해보려고 한다.
책은 eclipse IDE, h2DB, maven 사용하므로
내가 현재 활용하고 있는 vscode IDE, mysqlDB, gradle 을 활용하면서 하려면 나름 생각을 해야한다.
인생을 편하게 살고 싶어서 일단 여러개 골라봄
내가 보기위한 application.properties 기본설정 포스팅 하나 써둬야겠음.
할 때마다 찾아봄.
그걸 외울 필요는 없잖아??
이거 참고해서 씀.
https://stackoverflow.com/questions/25930191/connect-mysql-to-spring-application
# DataSource Setting
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.url=jdbc:mysql://localhost:3306/test_crud?serverTimezone=UTC&characterEncoding=UTF-8
spring.datasource.username=root
spring.datasource.password=1234
# JPA Setting
spring.jpa.hibernate.ddl-auto=create
spring.jpa.generate-ddl=false
spring.jpa.show-sql=true
spring.jpa.database-platform=org.hibernate.dialect.MySQL5InnoDBDialect
spring.jpa.properties.hibernate.format_sql=true
# Logging Setting
logging.level.org.hibernate=info
이번에는 이렇게 썼다.
이렇게 해서 안되면 수정하러 올것임.
저거 잘 되는듯
DB에도 잘 들어옴.
여기 폴더 이름들은 왜 이럴까
시키는대로 해본다.
@Test 사용시 org.junit
지난번에도 나를 피곤하게 하더니
이번에도 jupiter 어쩌구 하고 나옴...
그것은 junit4 와 junit5의 차이
책은 junit4를 기반으로 쓰여짐.
그래서 @ 이름이 다른 것이 있었다.
알아서 잘 고침.
insert test 잘됨.
update 도 잘됨
콘솔에서 hibernate 로 잘 안보여서 이걸로 본다.
그런데 하나 만들고 하나 테스트해보기 귀찮다.
방금 생각한건데, 나는 책의 결말을 보고 따라할 필요가 있다.
이 책 맨 마지막 챕터만 따라하면 될듯
다시 해보자...
'오리너구리의 오리발질' 카테고리의 다른 글
springboot + react (0) | 2020.07.27 |
---|---|
spring boot 책 따라하기 (0) | 2020.07.27 |
[ 비가 그친 오리 ] rest api 실행결과 (0) | 2020.07.24 |
[ 오늘의 오리발질 ] 오늘도 rest api를 해보려고 했다. (0) | 2020.07.24 |
[ 오늘의 오리 ] 나는 원래 rest api 를 공부하려고 했다. (0) | 2020.07.23 |
Comments