springboot-bug
weixin_43564549
这个作者很懒,什么都没留下…
展开
-
springboot国际化坑
Springboot 国际化遇到的坑 1、 实现LocaleResolver接口后,将自己实现的类的对象注入容器中,方法 名一定是localeResolver @Bean public LocaleResolver localeResolver(){ return new MyLocaleResolver(); } 2、通过设置如下代码返回index.ht...原创 2019-10-03 10:42:25 · 358 阅读 · 0 评论 -
restful与springboot结合的坑
通过springboot用restful风格进行crud操作时,进行Put映射时,特别注意表单是不能够进行put请求的,所以要用下面的表达方式来进行 <form th:action="@{/emp}" method="post"> <input type="hidden" name="_method" value="put" th:if="${emp!=null}"/...原创 2019-10-03 19:31:32 · 280 阅读 · 0 评论 -
关于springboot项目连接mysql报“Unable to load authentication plugin 'caching_sha2_password”错误
在我连接linux下的数据库时,出现“Unable to load authentication plugin 'caching_sha2_password”错误,如下图 java.sql.SQLException: Unable to load authentication plugin 'caching_sha2_password'. at com.mysql.cj.jdbc....原创 2019-10-04 19:24:18 · 742 阅读 · 0 评论