|
@@ -13,9 +13,11 @@ import org.mybatis.spring.annotation.MapperScan;
|
|
|
import org.springframework.boot.autoconfigure.security.servlet.UserDetailsServiceAutoConfiguration;
|
|
import org.springframework.boot.autoconfigure.security.servlet.UserDetailsServiceAutoConfiguration;
|
|
|
|
|
|
|
|
@EnableScheduling
|
|
@EnableScheduling
|
|
|
-// Both com.zksy.video mappers carry @Mapper themselves; a package-wide scan here would also
|
|
|
|
|
-// register ordinary interfaces (e.g. VideoLifecycleStore) as mappers and break injection.
|
|
|
|
|
-@MapperScan(basePackages={"com.ruoyi.wvp.mapper"})
|
|
|
|
|
|
|
+// Scan only interfaces annotated with @Mapper. Declaring @MapperScan at all disables the
|
|
|
|
|
+// starter's automatic scan, so both packages must be listed; the annotation filter keeps
|
|
|
|
|
+// ordinary interfaces (e.g. VideoLifecycleStore) from being registered as mappers.
|
|
|
|
|
+@MapperScan(basePackages = {"com.zksy.video", "com.ruoyi.wvp.mapper"},
|
|
|
|
|
+ annotationClass = org.apache.ibatis.annotations.Mapper.class)
|
|
|
@SpringBootApplication(scanBasePackages = {"com.zksy.video", "com.ruoyi.wvp"}, exclude = {DataSourceAutoConfiguration.class,UserDetailsServiceAutoConfiguration.class})
|
|
@SpringBootApplication(scanBasePackages = {"com.zksy.video", "com.ruoyi.wvp"}, exclude = {DataSourceAutoConfiguration.class,UserDetailsServiceAutoConfiguration.class})
|
|
|
public class VideoApplication {
|
|
public class VideoApplication {
|
|
|
public static void main(String[] args) { SpringApplication.run(VideoApplication.class, args); }
|
|
public static void main(String[] args) { SpringApplication.run(VideoApplication.class, args); }
|