Browse Source

测试跨域问题

songyh 4 năm trước cách đây
mục cha
commit
d11da78de7

+ 0 - 6
jeecg-boot-module-system/src/main/java/org/jeecg/config/WebMvcConfiguration.java

@@ -1,8 +1,6 @@
 package org.jeecg.config;
 
-import org.jeecg.config.interceptors.BrowseLogHandelInterceptor;
 import org.jeecg.modules.shiro.authc.interceptor.OnlineInterceptor;
-import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.beans.factory.annotation.Value;
 import org.springframework.context.annotation.Bean;
 import org.springframework.context.annotation.Configuration;
@@ -22,10 +20,6 @@ import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
  */
 @Configuration
 public class WebMvcConfiguration implements WebMvcConfigurer {
-
-	@Autowired
-	BrowseLogHandelInterceptor browseLogHandelInterceptor;
-
 	@Value("${jeecg.path.upload}")
 	private String upLoadPath;
 	@Value("${jeecg.path.webapp}")

+ 2 - 1
module-toutiao/src/main/java/cn/com/ctop/toutiao/modules/material/service/impl/BytedanceImageInfoServiceImpl.java

@@ -7,6 +7,7 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
 
+import javax.annotation.Resource;
 import java.util.List;
 
 /**
@@ -17,7 +18,7 @@ import java.util.List;
  */
 @Service
 public class BytedanceImageInfoServiceImpl extends ServiceImpl<BytedanceImageInfoMapper, BytedanceImageInfo> implements IBytedanceImageInfoService {
-    @Autowired
+    @Resource
     private BytedanceImageInfoMapper imageInfoMapper;
     @Override
     public void replaceBatch(List<BytedanceImageInfo> videoInfoList) {