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整合thym