![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
spring
wang0112233
还在努力搬砖阶段
展开
-
docker 启功spring boot 报错could not create Vfs.Dir from url, no matching UrlType was found
org.reflections.ReflectionsException: could not create Vfs.Dir from url, no matching UrlType was found [file:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/libatk-wrapper.so]either use fromURL(final URL url, final List<UrlType> url...原创 2020-11-20 11:42:46 · 12324 阅读 · 3 评论 -
集成SpringSecurity,访问接口报401 unauthorization无权限
集成了spring Security的时候启动项目,如果没有设置默认的账号密码,系统会自动给你生成一个密码,默认用户为user在postman中访问的时候只需要设置这样就可以简单的访问接口并正确返回。因为你没有设置密码,这样每次重启会给你一个随机新的密码,这样很不方便,那么我们可以在配置文件中定义固定的账号密码当然也可以直接在java文件中定义账号密码,首先需要我们...转载 2020-03-27 11:36:52 · 13974 阅读 · 1 评论 -
Web.xml配置详解之context-param
最近在看整合ssm的web.xml的配置,看到好的东西分享给你们转自:http://blog.csdn.net/liaoxiaohua1981/article/details/6759206 格式定义:[html] view plaincopycontext-param> param-name>contextConfig转载 2017-08-30 20:05:46 · 356 阅读 · 0 评论 -
@PostConstruct注解应用redis连接
@PostConstruct注解 被@PostConstruct修饰的方法会在服务器加载Servlet的时候运行,并且只会被服务器调用一次,类似于Serclet的inti()方法。被@PostConstruct修饰的方法会在构造函数之后,init()方法之前运行。@Componentpublic class JedisPoolWrapper { private JedisPool ...原创 2018-04-18 23:12:18 · 1307 阅读 · 0 评论