반응형
Demo.java
package com.example.demo;
import jakarta.persistence.Entity;
@Entity
@Getter@Setter
public class Demo {
}
DemoRepository.java
package com.example.demo;
import org.springframework.data.repository.CrudRepository;
public interface DemoRepository extends CrudRepository<Demo, Long>{
}
application.properties -> application.yml
spring:
profiles: default
jpa:
properties:
hibernate:
show_sql: true
format_sql: true
h2:
console:
enabled: true
logging:
level:
org.hibernate.type: trace
org.springframework.cloud: debug
server:
port: 8080
반응형
'springboot' 카테고리의 다른 글
vscode springboot development env. (0) | 2023.04.25 |
---|
댓글