春季加载1.2.5 +春季启动1.3.2.似乎无法使其正常工作 [英] Spring loaded 1.2.5 + Spring Boot 1.3.2. can't seem to get it to work

查看:94
本文介绍了春季加载1.2.5 +春季启动1.3.2.似乎无法使其正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在youtube上看到了一个视频( https://www.youtube.com/watch? v = GTrNkhVnJBU )在其中演示了Spring Loaded.

我正在尝试复制相同的行为,但到目前为止仍未成功.

我正在使用什么:

Spring Tool Suite 3.7.2 Spring Boot 1.3.2-发布 弹簧加载1.2.5-RELEASE Maven版本3.1.0 JDK 1.8.0_71

我尝试了与视频中的家伙相同的操作(当然,除了版本是最新的),但这是行不通的.

我还尝试了Spring文档中所述的"Maven插件"方法-> 解决方案

Spring加载尚不支持spring 4.2.参见 https://github.com/spring-projects/spring-loaded/issues/139

因此,您要么坚持使用 DevTools 当然可以加快开发过程(尽管不如弹簧加载那样快),请使用JRebel(支持最新的Spring版本)或降级到Spring 4.1.

I came across a video on youtube ( https://www.youtube.com/watch?v=GTrNkhVnJBU ) where it demos Spring Loaded.

I'm trying to duplicate the same behavior but am still unsuccessful so far.

What I'm using:

Spring Tool Suite 3.7.2 Spring Boot 1.3.2-RELEASE Spring loaded 1.2.5-RELEASE Maven version 3.1.0 JDK 1.8.0_71

I tried the same thing as the guy does in the video (except for the versions being more up to date of course) but it doesn't work.

I also tried the "maven plugin" way as described in the spring docs here -> https://docs.spring.io/spring-boot/docs/current/reference/html/howto-hotswapping.html#howto-reload-springloaded-maven But that also did not work.

I tried changing the versions of spring loaded to 1.2.0 (docs use that version) but that didn't do anything either.

I ran the app in STS itself, and also tried mvn spring-boot:run from command line, but both simply don't get the desired result.

When using mvn spring-boot:run I see that it is attaching the agent:

[INFO] Attaching agents: [C:\Users\ron.m2\repository\org\springframework\springloaded\1.2.5.RELEASE\springloaded-1.2.5.RELEASE.jar]

But changing RequestMappings or method signatures do not get picked up by spring loaded and thus the change is not reflected.

I'm a little out of ideas why I can't get this to work and any help would be greatly appreciated.

解决方案

Spring loaded does not yet support spring 4.2. See https://github.com/spring-projects/spring-loaded/issues/139

So you either stick with DevTools which definitely speeds up the development process (although not as fast as spring-loaded), use JRebel (which supports the latest spring version) or downgrade to spring 4.1.

这篇关于春季加载1.2.5 +春季启动1.3.2.似乎无法使其正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆