首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >当我以maven build:spring-boot:run的身份运行myJhipsterApp时,spring-boot-devtools似乎不工作

当我以maven build:spring-boot:run的身份运行myJhipsterApp时,spring-boot-devtools似乎不工作
EN

Stack Overflow用户
提问于 2017-03-07 22:27:42
回答 1查看 199关注 0票数 0

我根据jhipster4博客演示的视频教程生成了一个博客应用程序,但是一旦我在eclipse中更改了.html或.java文件,spring-boot就不会自动部署这些更改,因此当我刷新浏览器时没有任何更改

这是pom.xml,

代码语言:javascript
复制
  <dependency>
                    <groupId>org.springframework.boot</groupId>
                    <artifactId>spring-boot-devtools</artifactId> 
                    <optional>true</optional>
                </dependency>

你知道怎么修吗?谢谢。

EN

回答 1

Stack Overflow用户

发布于 2017-03-08 12:35:22

代码语言:javascript
复制
<plugin>
                    <groupId>org.springframework.boot</groupId>
                    <artifactId>spring-boot-maven-plugin </artifactId>
                       <configuration>
                            <executable>true</executable>
                            <fork>true</fork>
                            <addResources>true</addResources>
                            <!--
                            Enable the line below to have remote debugging of your application on port 5005
                            <jvmArguments>-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005</jvmArguments>
                            -->
                        </configuration>
                    <dependencies> 
                       <!--springloaded  hotdeploy --> 
                       <dependency> 
                           <groupId>org.springframework</groupId> 
                           <artifactId>springloaded</artifactId> 
                           <version>1.2.4.RELEASE</version>
                       </dependency> 
                    </dependencies> 
                    <executions> 
                       <execution> 
                           <goals> 
                               <goal>repackage</goal> 
                           </goals> 
                           <configuration> 
                               <classifier>exec</classifier> 
                           </configuration> 
                       </execution> 
                    </executions>
</plugin>
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/42650833

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档