@Controller
@RequestMapping("/TestPCTController")
public class TestPCTController {
@Resource(name = "StockQuotationService")
private StockQuotationService stockQuotationService;
@RequiresRoles(value = { "admin", "一般查询用户" }, logical = Logical.OR)
@RequestMapping("/obtainTest")
public void obtainTest(HttpServletRequest request,
HttpServletResponse response) {
在方法上面添加红色部分