본문 바로가기
springboot

Spring Initializer

by YJHTPII 2023. 7. 11.
반응형

 

https://start.spring.io/

 

 

 

 

 

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

댓글