zoro 1 year ago
parent
commit
80c6b12874

+ 1 - 0
pom.xml

@@ -391,6 +391,7 @@
                 <includes>
                     <include>**/*.xml</include>
                 </includes>
+                <filtering>false</filtering>
             </resource>
             <resource>
                 <!--打包时先排除不必要的文件,想要指定加入的再下面的resource指定-->

+ 2 - 0
src/main/java/com/shcd/GHJGApplication.java

@@ -7,6 +7,7 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
 import org.springframework.boot.builder.SpringApplicationBuilder;
 import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
 import org.springframework.context.annotation.ComponentScan;
+import org.springframework.context.annotation.Configuration;
 import org.springframework.scheduling.annotation.EnableAsync;
 import org.springframework.scheduling.annotation.EnableScheduling;
 import org.springframework.transaction.annotation.EnableTransactionManagement;
@@ -14,6 +15,7 @@ import org.springframework.transaction.annotation.EnableTransactionManagement;
 @SpringBootApplication
 @EnableScheduling
 @EnableAsync
+@Configuration
 @EnableTransactionManagement
 @MapperScan("com.shcd.*")
 @ComponentScan({"com.shcd.utils","com.shcd.conf","com.shcd.*"})

+ 2 - 1
src/main/java/com/shcd/mapper/ShipLockDoorStatusRealtimeMapper.java

@@ -1,12 +1,13 @@
 package com.shcd.mapper;
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
 import com.shcd.entity.ShipLockDoorStatusRealtime;
+import org.apache.ibatis.annotations.Mapper;
 import org.springframework.stereotype.Component;
 import org.springframework.stereotype.Repository;
 
 /**
 * @Entity entity.ShipLockDoorStatusRealtime
 */
-@Repository
+@Mapper
 public interface ShipLockDoorStatusRealtimeMapper extends BaseMapper<ShipLockDoorStatusRealtime> {
 }