运行springboot出现 StudentmanageSpringbootApplication 无法检索应用程序 JMX 服务 URL
package com.yuliang;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
@MapperScan("com.yuliang.mapper")
public class StudentmanageSpringbootApplication {
public static void main(String[] args) {
SpringApplication.run(StudentmanageSpringbootApplication.class, args);
}
}
//application.yml
server:
port: 8080
spring:
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://localhost:3306/dormitory
username: root
password: 123456
mybatis-plus:
configuration:
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
mapper-locations: com/yuliang/mapper/xml/*.xml