Spring Boot 3.4.1 Не удалось запустить во время миграции формы 2.xJAVA

Программисты JAVA общаются здесь
Anonymous
Spring Boot 3.4.1 Не удалось запустить во время миграции формы 2.x

Сообщение Anonymous »

Я становлюсь ниже ошибки при обновлении Java 1.8 до Java 17 и Spring 2.x до Spring 3.4.1. Большая часть моей миграции проекта успешна, но я сталкиваюсь с проблемой для одного из проектов, который использует SFTP. Spring Boot не удается увеличить приложение, и при отладке исключения я чувствую, что он жалуется на аннотацию заказа, ожидая строкового значения, при котором проходит целое число. I am failing to understand why this is happening.
Project configuration Java : 17 spring-boot-starter-parent : 3.4.1 tomcat.embed.core.version : 10.1.35 spring-integration-core, spring-integration-file, spring-boot-starter-integration, spring-integration-ftp, spring-integration-sftp and spring-expression with default version of Spring-Boot-Starter-Parent < /p>
Отладка AbstractMethodannotationPostProcessor.class Файл бросает исключение
at org.springframework.integration.config.abstractmethodantationpostprocessor.processbeandefinition (AbstractMethodantationPostProcessor.java:205 )
if (isClassIn(handlerBeanClass, Orderable.class, AbstractSimpleMessageHandlerFactoryBean.class)) {
mergedAnnotations.get(Order.class)
.getValue(AnnotationUtils.VALUE, String.class).
ifPresent((order) -> handlerBeanDefinition.getPropertyValues().add("order", order));
}
< /code>
Исключение: < /p>
java.lang.IllegalArgumentException: Unable to adapt value of type java.lang.Integer to java.lang.String
at org.springframework.core.annotation.TypeMappedAnnotation.adapt(TypeMappedAnnotation.java:483)
at org.springframework.core.annotation.TypeMappedAnnotation.getValue(TypeMappedAnnotation.java:391)
at org.springframework.core.annotation.TypeMappedAnnotation.getAttributeValue(TypeMappedAnnotation.java:372)
at org.springframework.core.annotation.AbstractMergedAnnotation.getValue(AbstractMergedAnnotation.java:176)
at org.springframework.integration.config.AbstractMethodAnnotationPostProcessor.processBeanDefinition(AbstractMethodAnnotationPostProcessor.java:205)
at org.springframework.integration.config.MessagingAnnotationPostProcessor.processMessagingAnnotationOnBean(MessagingAnnotationPostProcessor.java:143)
at org.springframework.integration.config.MessagingAnnotationPostProcessor.processCandidate(MessagingAnnotationPostProcessor.java:130)
at org.springframework.integration.config.MessagingAnnotationPostProcessor.postProcessBeanDefinitionRegistry(MessagingAnnotationPostProcessor.java:99)
at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanDefinitionRegistryPostProcessors(PostProcessorRegistrationDelegate.java:349)
at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:148)
at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:791)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:609)
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:146)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:752)
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:439)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:318)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1361)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1350)
at com.msts.Application.main(Application.java:39)
< /code>
**** pom.xml **** < /p>



4.0.0

com.msts
transmit-file-command
0.0.1-SNAPSHOT
jar

transmit-file-command
Transmit File


org.springframework.boot
spring-boot-starter-parent
3.4.1



UTF-8
UTF-8
17
5.3.2
4.10.3
10.1.35






org.springframework.boot
spring-boot-starter-data-rest



org.springframework.boot
spring-boot-starter-web


org.apache.tomcat.embed
tomcat-embed-core





org.apache.tomcat.embed
tomcat-embed-core
${tomcat.embed.core.version}



org.springframework.boot
spring-boot-starter-actuator
compile



org.springframework.boot
spring-boot-starter-web-services



org.springframework.boot
spring-boot-starter-validation




org.flywaydb
flyway-core
9.22.3




org.springframework.boot
spring-boot-starter-data-jpa




org.axonframework
axon-spring-boot-starter
${axon.version}



org.springframework
spring-test



com.github.mwiede
jsch
0.2.16




org.postgresql
postgresql
42.7.2





com.amazonaws
aws-java-sdk-sqs
1.11.551




com.amazonaws
aws-java-sdk-sns
1.11.551






























Подробнее здесь: https://stackoverflow.com/questions/796 ... g-form-2-x

Вернуться в «JAVA»