Merge branch 'feature/improve_starter' into pre

This commit is contained in:
wangli 2026-02-25 11:46:46 +08:00
commit 9bef1c119c
2 changed files with 46 additions and 5 deletions

37
pom.xml
View File

@ -214,6 +214,43 @@
</annotationProcessorPaths>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.5.3</version>
<configuration>
<skipTests>true</skipTests>
</configuration>
</plugin>
<!-- version number -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId>
<version>1.2.7</version>
<configuration>
<updatePomFile>true</updatePomFile>
<flattenMode>resolveCiFriendliesOnly</flattenMode>
</configuration>
<executions>
<execution>
<id>flatten</id>
<phase>process-resources</phase>
<goals>
<goal>flatten</goal>
</goals>
</execution>
<execution>
<id>flatten.clean</id>
<phase>clean</phase>
<goals>
<goal>clean</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

View File

@ -32,10 +32,14 @@ public class ClientInfoReporter implements ApplicationListener<ApplicationReadyE
@Override
public void onApplicationEvent(ApplicationReadyEvent event) {
log.info("application start success, reporting client info...");
workflowCoreService.reportClientInfo(ReportClientInfoDTO.builder()
.clientApplicationName(applicationName)
.clientVersion(clientVersion)
.manageableStatus(manageableStatus)
.build());
try {
workflowCoreService.reportClientInfo(ReportClientInfoDTO.builder()
.clientApplicationName(applicationName)
.clientVersion(clientVersion)
.manageableStatus(manageableStatus)
.build());
} catch (Exception e) {
log.warn("error executing report client info : {}", e.getMessage(), e);
}
}
}