package com.today10sec.diary.etc;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.core.env.Environment;
import org.springframework.stereotype.Component;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.transaction.Transactional;
@Component
@Transactional
public class JpaRunner implements ApplicationRunner {
@PersistenceContext
EntityManager entityManager;
@Autowired
Environment environment;
@Override
public void run(ApplicationArguments args) throws Exception {
}
}
'JAVA > spring' 카테고리의 다른 글
[1028 Springboot2] Validation Example (0) | 2021.05.09 |
---|---|
[1028 JPA]에러모음 (0) | 2021.05.06 |
[1028 from 스프링 백기선 JPA] 스프링데이터 Common _ 쿼리, 비동기, 도메인, QueryDSL (추후 추가. ) (0) | 2021.05.03 |
[1028 from 스프링 백기선 JPA] 스프링데이터 Common _ Repository, Interface, null (0) | 2021.05.03 |
[1028 from 스프링 백기선 JPA] 스프링데이터 _ JPA 원리, 스프링데이터 모듈 (0) | 2021.05.03 |