Connected to the target VM, address: '127.0.0.1:52234 SpringBoot 启动错误
日期: 2018-04-20 分类: 跨站数据测试 320次阅读
idea+maven+SpringBoot+Mybatis 搭建项目,项目启动时提示:
Connected to the target VM, address: '127.0.0.1:52234
网上答案有maven 与 idea 版本冲突或者是没有下面的依赖
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency>
试过后都没有效果,最后发现是启动类放的位置不正确,
启动类必须放在bean、controller外面,之后启动成功,能正常使用。
第一次使用SpringBoot,如果你遇到相同的问题,希望能为你节省时间。
除特别声明,本站所有文章均为原创,如需转载请以超级链接形式注明出处:SmartCat's Blog
上一篇: REST,以及RESTful的讲解
下一篇: 学习HTML心得体会
精华推荐