package com.jthink.skyeye.data.jpa.configuration; import org.springframework.boot.orm.jpa.EntityScan; import org.springframework.context.annotation.Configuration; import org.springframework.data.jpa.repository.config.EnableJpaRepositories; import org.springframework.transaction.annotation.EnableTransactionManagement; /** * JThink@JThink * * @author JThink * @version 0.0.1 * @desc jpa相关的配置 * @date 2016-08-26 09:32:15 */ @Configuration @EnableTransactionManagement @EntityScan("com.jthink.skyeye.data.jpa.domain") @EnableJpaRepositories(entityManagerFactoryRef = "entityManagerFactory", transactionManagerRef = "transactionManager", basePackages = { "com.jthink.skyeye.data.jpa.repository" }) public class JpaConfiguration { }