修改自动注入
This commit is contained in:
parent
550b6bf276
commit
388aaaaada
|
|
@ -44,7 +44,7 @@ public class ValidateCodeFilter extends AbstractGatewayFilterFactory<Object>
|
||||||
{
|
{
|
||||||
return (exchange, chain) -> {
|
return (exchange, chain) -> {
|
||||||
ServerHttpRequest request = exchange.getRequest();
|
ServerHttpRequest request = exchange.getRequest();
|
||||||
|
/*
|
||||||
// 非登录/注册请求或验证码关闭,不处理
|
// 非登录/注册请求或验证码关闭,不处理
|
||||||
if (!StringUtils.equalsAnyIgnoreCase(request.getURI().getPath(), VALIDATE_URL) || !captchaProperties.getEnabled())
|
if (!StringUtils.equalsAnyIgnoreCase(request.getURI().getPath(), VALIDATE_URL) || !captchaProperties.getEnabled())
|
||||||
{
|
{
|
||||||
|
|
@ -60,7 +60,7 @@ public class ValidateCodeFilter extends AbstractGatewayFilterFactory<Object>
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
return ServletUtils.webFluxResponseWriter(exchange.getResponse(), e.getMessage());
|
return ServletUtils.webFluxResponseWriter(exchange.getResponse(), e.getMessage());
|
||||||
}
|
}*/
|
||||||
return chain.filter(exchange);
|
return chain.filter(exchange);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ public class BmCarouselSetController {
|
||||||
/**
|
/**
|
||||||
* 服务对象
|
* 服务对象
|
||||||
*/
|
*/
|
||||||
@Autowired
|
@Resource
|
||||||
private BmCarouselSetService bmCarouselSetService;
|
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.RequestMapping;
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
import javax.annotation.Resource;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@RestController
|
@RestController
|
||||||
|
|
@ -19,7 +20,7 @@ import java.util.List;
|
||||||
public class MaDevInfoController extends BaseController {
|
public class MaDevInfoController extends BaseController {
|
||||||
|
|
||||||
|
|
||||||
@Autowired
|
@Resource
|
||||||
private MaDevInfoService maDevInfoService;
|
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.RequestMapping;
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
import javax.annotation.Resource;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/hotSearch")
|
@RequestMapping("/hotSearch")
|
||||||
public class MaHotSearchController extends BaseController {
|
public class MaHotSearchController extends BaseController {
|
||||||
|
|
||||||
@Autowired
|
@Resource
|
||||||
private MaHotSearchService maHotSearchService;
|
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.RequestMapping;
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
import javax.annotation.Resource;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/maType")
|
@RequestMapping("/maType")
|
||||||
public class MaTypeInfoController extends BaseController {
|
public class MaTypeInfoController extends BaseController {
|
||||||
|
|
||||||
@Autowired
|
@Resource
|
||||||
private MaTypeInfoSevice maTypeInfoSevice;
|
private MaTypeInfoSevice maTypeInfoSevice;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -7,12 +7,13 @@ import com.bonus.zlpt.home.service.MaDevInfoService;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import javax.annotation.Resource;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@Service
|
@Service
|
||||||
public class MaDevInfoServiceImpl implements MaDevInfoService {
|
public class MaDevInfoServiceImpl implements MaDevInfoService {
|
||||||
|
|
||||||
@Autowired
|
@Resource
|
||||||
private MaDevInfoMapper maDevInfoMapper;
|
private MaDevInfoMapper maDevInfoMapper;
|
||||||
@Override
|
@Override
|
||||||
public List<MaDevInfoVo> getEquipmentList(MaDevInfo maDevInfo) {
|
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.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import javax.annotation.Resource;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@Service
|
@Service
|
||||||
public class MaHotSearchServiceImpl implements MaHotSearchService {
|
public class MaHotSearchServiceImpl implements MaHotSearchService {
|
||||||
|
|
||||||
@Autowired
|
@Resource
|
||||||
private MaHotSearchMapper maHotSearchMapper;
|
private MaHotSearchMapper maHotSearchMapper;
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,7 @@ import com.bonus.zlpt.home.service.MaTypeInfoSevice;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import javax.annotation.Resource;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
@ -16,7 +17,7 @@ import java.util.Map;
|
||||||
@Service
|
@Service
|
||||||
public class MaTypeInfoServiceImpl implements MaTypeInfoSevice {
|
public class MaTypeInfoServiceImpl implements MaTypeInfoSevice {
|
||||||
|
|
||||||
@Autowired
|
@Resource
|
||||||
private MaTypeInfoMapper maTypeInfoMapper;
|
private MaTypeInfoMapper maTypeInfoMapper;
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue