springboot使用flyway管理数据库

摘要: <!-- 1. 导入依赖 --> <dependency> <groupId>org.flywaydb</groupId> <artifactId>flyway-core</artifactId> </dependency> 2.按Flyway的规范创建版本化的SQL脚本。 2.1)在工程的src/ 阅读全文
posted @ 2021-11-29 09:36 jav-a- 阅读(41) 评论(0) 推荐(0) 编辑

vue笔记

摘要: //需要在表单位置添加 ref=“随便取” 绑定清空区域 ref="dataAddForm" this.$refs.dataAddForm.resetFields();//重置表单并取消校验结果 阅读全文
posted @ 2021-11-28 16:22 jav-a- 阅读(14) 评论(0) 推荐(0) 编辑

idea中设置maven依赖优先从指定本地仓库获取

摘要: Settings--> Build,Execution,Deployment --> Build Tools --> Maven --> Runner ,在VM Option中设置参数 -DarchetypeCatalog=internal 阅读全文
posted @ 2021-11-28 16:09 jav-a- 阅读(1203) 评论(0) 推荐(0) 编辑

启动报错 Unable to load authentication plugin 'caching_sha2_password'.

摘要: mysql 的driver版本太低,更改高点的版本。 如果是8.0以上的版本,driver驱动也需要更改。 <!-- https://mvnrepository.com/artifact/mysql/mysql-connector-java --> <dependency> <groupId>mys 阅读全文
posted @ 2021-11-27 12:16 jav-a- 阅读(80) 评论(0) 推荐(0) 编辑

springboot启动报错:org.springframework.boot.context.properties.ConfigurationPropertiesBean

摘要: springboot版本和springcloud版本不兼容,换一个版本试试 阅读全文
posted @ 2020-01-27 20:40 jav-a- 阅读(15785) 评论(1) 推荐(1) 编辑

运行springboot项目出现:Type javax.xml.bind.JAXBContext not present

摘要: 问题:运行springboot项目出现:Type javax.xml.bind.JAXBContext not present 原因 java9+版本以后,JAXB默认没有加载 手动添加模块到pom: spring boot 2.0.*版本,添加如下代码: ———————————————— <!-- 阅读全文
posted @ 2020-01-27 20:39 jav-a- 阅读(649) 评论(0) 推荐(0) 编辑

SpringSecurity出现org.springframework.security.authentication.BadCredentialsException: Bad credentials

摘要: 出现Bad credentials,排除了配置问题,debug跟到了数据库的内容可以查出; 最后发现是因为直接通过insert语句增加了用户信息,密码没有经过加密。 一:springSecurity提供了一个增加{noop}字符串来解决 "{noop}"+userInfo.getPassword() 阅读全文
posted @ 2020-01-26 23:45 jav-a- 阅读(9180) 评论(0) 推荐(0) 编辑