修改项目的配置中有关包的扫描的配置

This commit is contained in:
YuCheng Hu 2023-03-31 15:54:57 -04:00
parent 480c0afd70
commit 1a8cfd50fe
2 changed files with 4 additions and 18 deletions

12
pom.xml
View File

@ -130,13 +130,6 @@
<version>1.6.11</version>
</dependency>
<!-- hutool -->
<dependency>
<groupId>cn.hutool</groupId>
<artifactId>hutool-all</artifactId>
<version>5.8.9</version>
</dependency>
<dependency>
<groupId>com.flagsmith</groupId>
<artifactId>flagsmith-java-client</artifactId>
@ -228,8 +221,6 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
</dependencies>
<build>
@ -276,8 +267,7 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>3.10.1</version>
<configuration>
<source>11</source>
<target>11</target>
<release>${java.version}</release>
<encoding>UTF-8</encoding>
</configuration>
</plugin>

View File

@ -1,4 +1,4 @@
package com.northtecom.visatrack.api.config;
package com.northtecom.visafn.sharkfly.config;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.annotation.Configuration;
@ -8,15 +8,11 @@ import org.springframework.data.jpa.convert.threeten.Jsr310JpaConverters;
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;
/**
* Created with IntelliJ IDEA.
*
* @Author: XieYang
* @Date: 2022/10/08/22:24
* @Description:
* EntityScan for entity
*/
@Order(Ordered.HIGHEST_PRECEDENCE)
@Configuration
@EntityScan(basePackages = "com.northtecom.visatrack.api.data.entity", basePackageClasses = {Jsr310JpaConverters.class})
@EntityScan(basePackages = "com.northtecom.visafn.sharkfly.data.entity", basePackageClasses = {Jsr310JpaConverters.class})
@EnableJpaAuditing
public class SpringDataJpaConfig {
}