SpringBoot
滔涛江水
java开发,一年经验,努力成长中!
展开
-
SpringBoot2.0 - Maven项目打包部署
新人面试,多少都会谈及SpringBoot相关的知识,我前些日子也自己搭了一个基于通用Mapper的SSM项目。至于项目的架构我会单独用一篇文章讲解,应该会发布到GitHub上。好了,回到正题直接上代码,以下是 POM最小配置<?xml version="1.0" encoding="UTF-8"?><project> <modelVersio...原创 2018-08-03 11:12:34 · 1146 阅读 · 0 评论 -
Java获得泛型的Class类型
搭框架ing今天在解决Bean对象与VO对象相互转换以及Controller兼容两种对象的问题这次就来谈谈遇到的一个印象最深刻的问题——泛型获取类型上代码public class BeanController<T,V> { @Autowired IBeanService<T> beanService; @RequestMappi...原创 2018-08-21 14:56:12 · 20084 阅读 · 2 评论 -
OAuth报错 - At least one redirect_uri must be registered with the client.
OAuth Errorerror="invalid_request", error_description="At least one redirect_uri must be registered with the client."HTML显示如上控制台报错16:20:57.013 INFO o.s.s.o.p.e.AuthorizationEndpoint >...原创 2018-12-20 16:32:46 · 11214 阅读 · 0 评论 -
UserDetailsService中Service或者Dao 使用@Autowired注入为NULL SpringBoot架构
网上有一些关于这个问题的答案,但都不是基于SpringBoot的,一想到SpringBoot还要配置XML文件就头大呀有木有。 以下就是解决方法:在SecurityConfig中添加如下代码 @Bean public UserDetailsService myUserService(){ return new MyUserDetailsService();...原创 2018-12-11 15:19:36 · 4152 阅读 · 8 评论