springboot security oauth2问题汇总

1、Caused by: java.lang.IllegalStateException: Ambiguous mapping. Cannot map 'loginController' method
loginController中存在重复的路由
2、mybatis启动报错:Consider defining a bean of type ‘com.newhope.interview.dao.UserMapper’ in your configuration.
提示dao层注入失败,检查了一下包结构,application在包的根目录下,正确,启动时自上而下扫描上下文。dao层已经添加了@Mapper注解。问题不知道出在哪里,更新jar包后才可以,修改pom文件:

       <dependency>
            <groupId>org.mybatis</groupId>
            <artifactId>mybatis-spring</artifactId>
            <version>1.3.2</version>
        </dependency>

修改为:

    <dependency>
            <groupId>org.mybatis.spring.boot</groupId>
            <artifactId>mybatis-spring-boot-starter</artifactId>
            <version>1.3.1</version>
        </dependency>

3、springboot整合thymeleaf报错:

Template might not exist or might not be accessible 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值