|
|
@@ -3,7 +3,9 @@ package com.uas.ps.pricing;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.boot.orm.jpa.EntityManagerFactoryBuilder;
|
|
|
import org.springframework.context.annotation.Bean;
|
|
|
+import org.springframework.context.annotation.Configuration;
|
|
|
import org.springframework.context.annotation.Primary;
|
|
|
+import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
|
|
|
import org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean;
|
|
|
|
|
|
import javax.sql.DataSource;
|
|
|
@@ -12,6 +14,8 @@ import javax.sql.DataSource;
|
|
|
* @author liusw
|
|
|
* @date 2018-04-24 11:03
|
|
|
*/
|
|
|
+@Configuration
|
|
|
+@EnableJpaRepositories
|
|
|
public class RepositoryConfiguration {
|
|
|
|
|
|
@Autowired
|