***************************
APPLICATION FAILED TO START
***************************
Description:
Field userMapper in com.gogogo.shopmall.service.system.UserService required a bean of type 'com.gogogo.shopmall.mapper.UserMapper' that could not be found.
The injection point has the following annotations:
- @org.springframework.beans.factory.annotation.Autowired(required=true)
Action:
Consider defining a bean of type 'com.gogogo.shopmall.mapper.UserMapper' in your configuration.
Disconnected from the target VM, address: '127.0.0.1:49357', transport: 'socket'
Process finished with exit code 0
最后发现mybatis依赖没加。。。。。。
<dependency> <groupId>org.mybatis.spring.boot</groupId> <artifactId>mybatis-spring-boot-starter</artifactId> <version>1.2.0</version> </dependency>
加上解决了