01 2020 档案
摘要:在添加数据的时候,Mysql报错为1366的错误的时候,是因为在设计数据库中的表的结构的时候,没有设置对应的字符集,将需要修改的字符集进行修改即可
阅读全文
摘要:List<String> cities = Arrays.asList("Milan", "London", "New York", "San Francisco"); String citiesCommaSeparated = String.join(",", cities); System.ou
阅读全文
摘要:错误界面 IDEA连接mysql,地址,用户名,密码,数据库名,全都配置好了,点测试连接,咔!不成功! 界面是这样的, 翻译过来就是:服务器返回无效时区。进入“高级”选项卡,手动设置“serverTimezone”属性。 看起来是时区出了问题。时区怎么会出问题?坑真多。网上搜了各种解决办法,琳琅满目
阅读全文
摘要:The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. at sun.reflect.Native
阅读全文
摘要:<profiles> <profile> <id>dev</id> <properties> <profiles.active>dev</profiles.active> </properties> <activation> <activeByDefault>true</activeByDefaul
阅读全文
摘要:其次在application.properties文件中配置mybatis的mapper文件位置,和实体类的包路径,还有最好加上驼峰命名规范 ####mybatis配置 # 注意注意 mybatis.mapper-locations=classpath:edu/hohai/chapter1/gt/m
阅读全文
摘要:org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'methodValidationPostProcessor' defined in class path
阅读全文
摘要:使用的场景: 今天在自己的demo项目中写代码时需要对list进行判空的出来, 我们都知道 先对list 是否为null 是否为为空(isEapty) 但是我不习惯这样的写,在工作中使用 工具类习惯了 CollectionUtils.isEpty( list) 防止 NPM的异常出现 我遇到了问题平
阅读全文
摘要:在spring security中设置默认的登录人的信息,遇到的异常信息: java.lang.IllegalArgumentException: There is no PasswordEncoder mapped for the id “null” 有些版本不要求这样子做,所以就不会有该问题的发
阅读全文
摘要:@RestController @RestController = @Controller + @ResponseBody组成,等号右边两位同志简单介绍两句,就明白我们@RestController的意义了: @Controller 将当前修饰的类注入SpringBoot IOC容器,使得从该类所在
阅读全文
摘要:<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-security</artifactId> </dependency> spring-security安全框架
阅读全文
摘要:java.lang.NullPointerException: null at org.springframework.boot.autoconfigure.diagnostics.analyzer.NoSuchBeanDefinitionFailureAnalyzer.getBeanDescrip
阅读全文
摘要:在私服上没有找到合适的jar包,才会报出来这样的异常,后来再分析原因的过程中,发现是因为没有引入版本号,导致这样的错误的。
阅读全文
摘要:安全性:误操作,认为破坏,数据泄露等 数据隔离:不同的权限能看到及操作不同的数据 明确的职责:运营,客服等不同角色,leader和dev等不同级别。 权限管理核心: 用户-权限:人员少,功能固定,或者特别简单的系统 RBAC(Role-Based Access Control) 用户-角色-权限,都
阅读全文
spring boot 上传文件出错:org.springframework.web.multipart.MultipartException: Could not parse multipart s
摘要:org.springframework.web.multipart.MultipartException: Could not parse multipart servlet request; nested exception is java.io.IOException: The temporar
阅读全文
摘要:单击改文件,选择属性 点击更改,选择你喜欢的方式将这个文件打开。 我选择是notepad++
阅读全文
摘要:首先打开VSCode软件,可以看到刚刚安装的VSCode软件默认使用的是英文语言环境,如下图: (2),这里需要使用快捷键【Ctrl+Shift+P】来实现,如下图: (3)在弹出的搜索框中输入【configure language】,然后选择搜索出来的【Configure Display Lang
阅读全文
摘要:public class ExcelUtils { private static final Logger logger = LoggerFactory.getLogger(ExcelUtils.class); private static List<List<Object>> lineList =
阅读全文
摘要:public class UploadImgUtils { private static String savePath = ""; /** * 上传照片工具类 * * @param file 文件 * @param workNo 工单号 * @param property 配置的环境(dev,pr
阅读全文