![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
springboot
文章平均质量分 65
Jachin'Lin
醉翁之意不在学,在乎山水之间也!
展开
-
springboot允许https和http同时访问
步骤如下首先得有ssl证书 我是在阿里云上申请的,申请比较简单,百度上一大堆.申请好之后下载相应的文件,我下载的是tomcat的.解压到相应的文件夹,之后通过dos命令行转到此路径.运行代码.运行命令如下keytool -importkeystore -srckeystore 1314xxx.pfx -destkeystore 1314.jks -srcstoretype ...原创 2020-04-04 15:16:42 · 1603 阅读 · 1 评论 -
SpringBoot2.x整合Security5遇到的bug
问题(There is no PasswordEncoder mapped for the id "null")显然这是密码认证问题,springboot1.x多版本都能使用,主要到后面就升级了,密码验证好多方法都改了,具体参考官方文档springboot官方文档找到安全方面的模快,这里我就说一下我是如何解决的原始代码 return new org.springframe...原创 2020-04-04 15:15:49 · 167 阅读 · 0 评论 -
springboot配置文件解读
为什么springboot好多依赖可以不写版本号reason:springboot添加了父级依赖,里面定义了好多版本号如果想用自己的版本呢?在依赖中加入自己的版本号you …springboot多配置文件用到哪个激活哪个server.profiles.active=文件名称-dev自定义配置文件的读取配置文件的@value("${name}")注解@Configu...原创 2020-03-15 17:24:11 · 107 阅读 · 0 评论 -
springboot2.x远程连接mysql踩的坑
spring中配置文件spring.datasource.type=com.alibaba.druid.pool.DruidDataSourcespring.datasource.url=jdbc:mysql://xx.xx.xx.xx:3306/springbootdata?useUnicode=true&characterEncoding=utf8&useSSL=false...原创 2020-03-13 23:10:44 · 609 阅读 · 1 评论