修改自动注入

This commit is contained in:
zfhai 2023-12-03 15:51:01 +08:00
parent 550b6bf276
commit 388aaaaada
8 changed files with 15 additions and 9 deletions

View File

@ -44,7 +44,7 @@ public class ValidateCodeFilter extends AbstractGatewayFilterFactory<Object>
{
return (exchange, chain) -> {
ServerHttpRequest request = exchange.getRequest();
/*
// 非登录/注册请求或验证码关闭不处理
if (!StringUtils.equalsAnyIgnoreCase(request.getURI().getPath(), VALIDATE_URL) || !captchaProperties.getEnabled())
{
@ -60,7 +60,7 @@ public class ValidateCodeFilter extends AbstractGatewayFilterFactory<Object>
catch (Exception e)
{
return ServletUtils.webFluxResponseWriter(exchange.getResponse(), e.getMessage());
}
}*/
return chain.filter(exchange);
};
}

View File

@ -19,7 +19,7 @@ public class BmCarouselSetController {
/**
* 服务对象
*/
@Autowired
@Resource
private BmCarouselSetService bmCarouselSetService;

View File

@ -12,6 +12,7 @@ import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import java.util.List;
@RestController
@ -19,7 +20,7 @@ import java.util.List;
public class MaDevInfoController extends BaseController {
@Autowired
@Resource
private MaDevInfoService maDevInfoService;

View File

@ -13,13 +13,14 @@ import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import java.util.List;
@RestController
@RequestMapping("/hotSearch")
public class MaHotSearchController extends BaseController {
@Autowired
@Resource
private MaHotSearchService maHotSearchService;
/**

View File

@ -12,13 +12,14 @@ import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import java.util.List;
@RestController
@RequestMapping("/maType")
public class MaTypeInfoController extends BaseController {
@Autowired
@Resource
private MaTypeInfoSevice maTypeInfoSevice;
/**

View File

@ -7,12 +7,13 @@ import com.bonus.zlpt.home.service.MaDevInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
@Service
public class MaDevInfoServiceImpl implements MaDevInfoService {
@Autowired
@Resource
private MaDevInfoMapper maDevInfoMapper;
@Override
public List<MaDevInfoVo> getEquipmentList(MaDevInfo maDevInfo) {

View File

@ -6,12 +6,13 @@ import com.bonus.zlpt.home.service.MaHotSearchService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
@Service
public class MaHotSearchServiceImpl implements MaHotSearchService {
@Autowired
@Resource
private MaHotSearchMapper maHotSearchMapper;

View File

@ -8,6 +8,7 @@ import com.bonus.zlpt.home.service.MaTypeInfoSevice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
@ -16,7 +17,7 @@ import java.util.Map;
@Service
public class MaTypeInfoServiceImpl implements MaTypeInfoSevice {
@Autowired
@Resource
private MaTypeInfoMapper maTypeInfoMapper;