修改自动注入
This commit is contained in:
parent
550b6bf276
commit
388aaaaada
|
|
@ -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);
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ public class BmCarouselSetController {
|
|||
/**
|
||||
* 服务对象
|
||||
*/
|
||||
@Autowired
|
||||
@Resource
|
||||
private BmCarouselSetService bmCarouselSetService;
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue