我是Spring boot的新手,正在尝试将现有的应用程序从1.5迁移到2.0。我阅读了《迁移指南》,发现将preoperties-migrator作为依赖项包含在父pom中会指出为了迁移需要进行的更改,因此我在pom.xml中添加了以下依赖项
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-properties-migrator</artifactId>
<version>2.0.4.RELEASE</version>
</dependency>
谁能指出哪里不对。
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">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.move.aws.eai.inventory</groupId>
<artifactId>aurora</artifactId>
<version>1.0.20-SNAPSHOT</version>
</parent>
<groupId>com.move.aws.eai.inventory.aurora</groupId>
<artifactId>bulk</artifactId>
<version>1.0.0-SNAPSHOT</version>
<name>Inventory and Waitlist Bulk API</name>
<dependencies>
<dependency>
<groupId>com.move.aws.eai.inventory.aurora</groupId>
<artifactId>common</artifactId>
</dependency>
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-java-sdk-sts</artifactId>
</dependency>
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-java-sdk-s3</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-hateoas</artifactId>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-dbcp2</artifactId>
</dependency>
<!-- Features toggling -->
<dependency>
<groupId>org.togglz</groupId>
<artifactId>togglz-spring-boot-starter</artifactId>
</dependency>
<dependency>
<groupId>org.togglz</groupId>
<artifactId>togglz-console</artifactId>
</dependency>
<!-- Testing -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
</dependency>
<dependency>
<groupId>org.powermock</groupId>
<artifactId>powermock-module-junit4</artifactId>
</dependency>
<dependency>
<groupId>org.powermock</groupId>
<artifactId>powermock-api-mockito2</artifactId>
</dependency>
<dependency>
<groupId>com.github.stefanbirkner</groupId>
<artifactId>system-rules</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
</dependency>
<dependency>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter-test</artifactId>
</dependency>
</dependencies>
<build>
<finalName>inventory-bulk</finalName>
<plugins>
<plugin>
<!-- Package as an executable jar -->
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>repackage</goal>
<goal>build-info</goal>
</goals>
</execution>
</executions>
<configuration>
<executable>true</executable>
</configuration>
</plugin>
</plugins>
</build>
<repositories>
<repository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>central</id>
<name>EnterpriseSystems-inventory-maven</name>
<url>https://artifactory.moveaws.com/artifactory/EnterpriseSystems-inventory-maven</url>
</repository>
<repository>
<snapshots />
<id>snapshots</id>
<name>EnterpriseSystems-inventory-maven</name>
<url>https://artifactory.moveaws.com/artifactory/EnterpriseSystems-inventory-maven</url>
</repository>
</repositories>
</project>
这是个愚蠢的错误。
我更改了父pom.xml以使用最新的Spring Boot版本。
Figure: Great Migration by gekkodigitalmedia licensed under Public Domain ()
目前,我正在努力将我的seam jbpm应用程序从Jboss 5.1迁移到WildFly 8.2 我使用的是Seam 2.2和JBPM 3.3,在WildFly 8.2上部署了jboss 5.1应用程序。在java 8上编译后,修复了一些问题,我被JBPM问题阻止。 下面是我的服务器日志 如果有人有解决办法,请告诉我。
我正在尝试从log4j1迁移。x到log4j2。十、 但我没有看到日志是在更改后生成的。我不知道我错过了什么。 下面是详细信息-现有log4j版本- 这被替换为- 我可以看到log4j-1.2.17.jar被这四个罐子取代了- log4j-jcl-2.6.2。罐子 log4j-core-2.1。罐子 log4j-api-2.1。罐子 log4j-1.2-api-2.6.2。罐子 这是现有的配置文件
在将我的应用程序(堆栈spring boot、camel、hystrix)从spring Boot1.5迁移到spring Boot2之后。我无法让hystrix度量显示在/Acturet/Prometheus中。 正如许多解决方案和教程所建议的那样,我已经确定了以下依赖项 并添加了以下配置类,我确信它正在实例化,正如我在Spring Boot自动配置日志中所检查的: 为了避免假设这样的教程/答案