1.通过@SpringBootAppliction注解类启动

SpringBoot学习之启动方式

启动方法:找到注解类->鼠标右键->run as-> java application。

 

2 通过maven启动SpringBoot,

首先,pom文件中需要添加springboot plugin

SpringBoot学习之启动方式

其次,debug configrations ->在Goals添加spring-boot:run,然后debug运行就可以。

SpringBoot学习之启动方式

 

  

 

相关文章:

  • 2022-12-23
  • 2021-04-29
  • 2021-10-10
猜你喜欢
  • 2021-12-04
  • 2021-09-25
  • 2021-04-13
  • 2021-04-30
  • 2022-01-19
  • 2021-10-22
相关资源
相似解决方案