spring
qq_26634873
这个作者很懒,什么都没留下…
展开
-
java.nio.charset.MalformedInputException: Input length = 1
参考:https://blog.csdn.net/weixin_36877698/article/details/103700076今天启动若依项目时,java.nio.charset.MalformedInputException: Input length = 1之前明明一切正常的,结果今天突然就不行了三个模块只有网关能正常启动刚开始以前是nacos 启动错了(我有两个nacons 服务),看了配置没有启错然后以为是数据库配置文件被不小心修改到了,然后把配置文件的sql重新执行了一次还原创 2022-04-19 10:38:02 · 392 阅读 · 0 评论 -
springboot 项目动态开启权限(模仿@EnableXXXX)
1 创建一个EnableXXX 注解类import com.cpiinfo.iot.isolar.config.PermissionsSelector;import org.springframework.context.annotation.Import;import java.lang.annotation.ElementType;import java.lang.annotation.Retention;import java.lang.annotation.RetentionPolicy原创 2022-04-18 11:00:21 · 474 阅读 · 0 评论 -
Error:Kotlin: Language version 1.1 is no longer supported; please, use version 1.2 or greater.
原创 2021-07-24 17:35:46 · 297 阅读 · 1 评论 -
spring-framework-5.1.20源码编译
github上找到5.1对应的版本https://github.com/spring-projects/spring-framework/tree/5.1.x查看README.md找到 Build from Source 目录源码编译如果中间报错Git 版本更新(Windows下)直接打开git-bash.exe,输入git update-git-for-windows然后重新编译,看到以下结果表示编译成功,大概需要半个小时左右最后导入Idea找到 Import into原创 2021-07-12 18:15:58 · 108 阅读 · 0 评论 -
通过自定义注解拿到请求路径等参数
@Component@Slf4jpublic class LoginHandlerResolver implements HandlerMethodArgumentResolver { @Override public boolean supportsParameter(MethodParameter methodParameter) { //如果有注解 AuthUser 才会封装请求参数到业务方法 return methodParameter.has原创 2021-05-07 21:21:47 · 495 阅读 · 0 评论 -
Content type ‘text/plain;charset=UTF-8‘ not supported
控制台报Content type ‘text/plain;charset=UTF-8’ not supported接口postMan 请求参数解决方法原创 2021-04-12 17:21:10 · 1135 阅读 · 0 评论 -
spring大文件下载
/*** apk 下载** @return* @throws IOException*/public void download(String version, HttpServletResponse response) throws IOException {String fileName;String path;// 下载最新版本if (version == null) {List versionList = padDao.getVersionList();// 得到最新版本号原创 2021-03-04 17:45:51 · 221 阅读 · 1 评论