SPRING实践总结--参数注解的使用
今天用spring 搭建测试模型过程中发现web接收参数的注解使用方式各有不同,在不同场景下的使用方式总结了一下 @RequestBody 获取POST请求中的参数,请求参数会放到MAP里 @RequestMapping(value = "/doQueryTempReq", method = RequestMethod.POST) public @ResponseBody Map<String, Object> doQueryTempReq(@Reques...
springboot 访问上传页面因csrf出现403的问题
@Configuration@EnableWebSecurity@EnableGlobalMethodSecurity(prePostEnabled = true)public class WebSecurityConfig extends WebSecurityConfigurerAdapter { private Logger logger = LoggerFactory.getLogger(this.getClass()); @Autowired Me...