项目场景:
编辑器:IntelliJ IDEA 2020.1
框架:Spring Initializr
问题描述:
启动SpringBoot项目一直停留在http://localhost:8080/login页面
@Override
public void run() {
bytes = mmInStream.read(buffer);
mHandler.obtainMessage(READ_DATA, bytes, -1, buffer).sendToTarget();
}
原因分析:
可能是项目中pom.xml中,下列代码块导致的问题
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
</dependency>
解决方案一:
输入用户名和密码
用户名默认: user
密码:密码去查看IDEA项目启动时的控制台日志
如下图
红圈出为密码,每个人的不一样,以自己电脑上的为准
解决方案二:
删除pom.xml中的代码块
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
</dependency>
注意:记得,重新启动项目!