原因:MAVEN版本与IDEA版本不兼容问题, maven虽然更新比较慢,但是最新的3.6.6在与IDEA2019版本及以下版本兼容时会出现以上问题 解决办法:重新配置一个3.6低级别版本的maven 下载链接: http://maven.apache.org/download.cgi 点击红框框下载历史版本 这里我选择的是3.6.0版本,具体下载选择bin.zip选项 然后  右键我的电脑-->属性-->环境变量 -->... 重新部署MAVEN—HOME就可以了,这里我就懒的敲了 然…
ylbtech-Java-API-Package:org.springframework.web.bind.annotation 1.返回顶部 1. @NonNullApi @NonNullFields Package org.springframework.web.bind.annotation Annotations for binding requests to controllers and handler methods as well as for binding request p…
ylbtech-Java-Class-@I:org.springframework.web.bind.annotation.PostMapping 1.返回顶部   2.返回顶部 1. package com.ylbtech.api.controller.operation; import cn.hutool.core.date.DateUtil; import com.ylbtech.api.core.response.Result; import com.ylbtech.api.core.r…
ylbtech-Java-Class-@I:org.springframework.web.bind.annotation.RestController 1.返回顶部   2.返回顶部 1. package com.ylbtech.api.controller.operation; import cn.hutool.core.date.DateUtil; import com.ylbtech.api.core.response.Result; import com.ylbtech.api.cor…
ylbtech-Java-Class-@I:org.springframework.web.bind.annotation.RequestMapping 1.返回顶部   2.返回顶部 1. package com.ylbtech.api.controller.operation; import cn.hutool.core.date.DateUtil; import com.ylbtech.api.core.response.Result; import com.ylbtech.api.cor…
ylbtech-Java-Class-@I:org.springframework.web.bind.annotation.RequestBody 1.返回顶部   2.返回顶部 1. package com.ylbtech.api.controller.operation; import cn.hutool.core.date.DateUtil; import com.ylbtech.api.core.response.Result; import com.ylbtech.api.core.r…
@RequestMapping(value="/redir/authcode") public ModelAndView getAuthCode(){ String authUrl="https://openauth.alipay.com/oauth2/publicAppAuthorize.htm?app_id="+contant.APPID+"&scope=auth_user&redirect_uri="+contant.ENC…
开发中常用的注解记录,查缺补漏 Request注解 @RequestBody @RequestHeader @RequestMapping @RequestParam @RequestPart @CookieValue @PathVariable; Response注解 @ResponseBody @ResponseStatus Attribute注解 @SessionAttributes, @ModelAttribute; Exception注解 @ExceptionHandler aop注解…
org.springframework.validation Class DataBinder java.lang.Object org.springframework.validation.DataBinder All Implemented Interfaces: PropertyEditorRegistry, TypeConverter Direct Known Subclasses: WebDataBinder public class DataBinder extends Object…
前言 ControllerAdvice非常好用,可以把系统内部的异常统一处理.用起来也很简单.比如,http://www.cnblogs.com/woshimrf/p/spring-web-400.html 而Spring提供了一个base类ResponseEntityExceptionHandler,可以使用这个来处理.但用的时候要注意,不要重复定义异常捕获,对于base里已经定义好的,只要overwrite就好,不要重复声明异常拦截. 以下来自stackoverflow 问题 @Contro…