0

正在使用msf4j-spring并且正在尝试使用spring-boot-devtools热重新加载和重新启动。我的 IDE 是 netbeans,我已将 IDE 设置为在保存时编译,但是当我编辑我的.java文件和properties文件时,它不会重新启动或重新加载我的micro-service应用程序。下面是我的pom.xml

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
    <groupId>org.wso2.msf4j</groupId>
    <artifactId>msf4j-service</artifactId>
    <version>2.6.1</version>
    <relativePath>parent/pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>

<groupId>com.innovectives.integration.nibss.outbound</groupId>
<artifactId>innovectives-nibss-outbound</artifactId>
<name>Innovectives Outbound Microservice</name>
<version>1.0-SNAPSHOT</version>
<dependencies>
    <dependency>
        <groupId>org.wso2.msf4j</groupId>
        <artifactId>msf4j-spring</artifactId>
        <version>2.6.1</version>
    </dependency>
    <dependency>
        <groupId>com.innovectives.octopus</groupId>
        <artifactId>octopus-ssm-common</artifactId>
        <version>1.0.0</version>
    </dependency>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-devtools</artifactId>
        <version>2.0.1.RELEASE</version>
        <optional>false</optional>
        <scope>runtime</scope>
    </dependency>
</dependencies>
<properties>
    <microservice.mainClass>com.innovectives.nibss.Application</microservice.mainClass>
</properties>
<build>
    <plugins>
        <plugin>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-maven-plugin</artifactId>
            <version>2.0.2.RELEASE</version>
            <executions>
                <execution>
                    <goals>
                        <goal>repackage</goal>
                    </goals>
                </execution>
            </executions>
            <configuration>
                <mainClass>com.innovectives.nibss.Application</mainClass>
                <layout>JAR</layout>
                <addResources>true</addResources>
            </configuration>
        </plugin>
    </plugins>
</build>

4

0 回答 0