<aside> <img src="https://raw.githubusercontent.com/eirikmadland/notion-icons/master/v5/icon3/ul-github.svg" alt="https://raw.githubusercontent.com/eirikmadland/notion-icons/master/v5/icon3/ul-github.svg" width="40px" /> ์ฐธ์กฐ Github Code
</aside>
dependencies {
runtimeOnly 'com.h2database:h2'
}
spring:
h2:
console:
enabled: true
SPRING ์๋ฒ START ์ด ํ http://localhost:8080/h2-console/
์ฃผ์๋ก ์ ์ ๋ฐ
์บก์ณ์ ๋ฉ๋ชจ๋ฆฌ ์ ๊ทผ ์ฃผ์ ํ์ธ ๋ฐ JDBC URL์ ์ ๋ ฅ ์ดํ ์ ์
๋ก์ปฌ ์๋ฒ๋ฅผ ์ฌ์์ํ๋ฉด ์๋ก์ด ๋ฉ๋ชจ๋ฆฌ ์ฃผ์๋ก ์ ์์ด ๊ฐ๋ฅํ๋ค.
@Setter
@Getter
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Entity
@EntityListeners(AuditingEntityListener.class)
public class Developer {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
protected Long id;
@Enumerated(EnumType.STRING)
private DeveloperLevel developerLevel;
@Enumerated(EnumType.STRING)
private DeveloperSkillType developerSkillType;
private Integer experienceYear;
private String memberId;
private String name;
private Integer age;
@CreatedDate
private LocalDateTime createdAt;
@LastModifiedDate
private LocalDateTime updatedAt;
}