Обновление Spring-boot-starter-parent до 3.2.12 сломало код SpringJAVA

Программисты JAVA общаются здесь
Ответить Пред. темаСлед. тема
Anonymous
 Обновление Spring-boot-starter-parent до 3.2.12 сломало код Spring

Сообщение Anonymous »

Вот исключение, которое я получаю после обновления Spring-boot-starter-parent с 3.1.12 до 3.2.12

Код: Выделить всё

java.lang.IllegalStateException: Failed to load ApplicationContext for [MergedContextConfiguration@6fba6a89 testClass = com.test.myapp.config.AppInitializerMongoDBTest, locations = [], classes = [com.test.myapp.core.services.ServicesConfig, com.test.myapp.core.repository.RepositoryConfig, com.test.myapp.config.PropertySources, com.test.myapp.jmx.JmxConfig, com.test.myapp.util.UtilConfig, com.test.myapp.core.async.AsyncConfig, com.test.myapp.core.identity.TenantIdentityConfig], contextInitializerClasses = [], activeProfiles = ["mongodbrepository"], propertySourceDescriptors = [], propertySourceProperties = ["org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true", "spring.main.web-application-type=none"], contextCustomizers = [org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@5725a005, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@5afaf431, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.web.client.TestRestTemplateContextCustomizer@b107f13, org.springframework.boot.test.web.reactor.netty.DisableReactorResourceFactoryGlobalResourcesContextCustomizerFactory$DisableReactorResourceFactoryGlobalResourcesContextCustomizerCustomizer@16e7b37c, org.springframework.boot.test.autoconfigure.OnFailureConditionReportContextCustomizerFactory$OnFailureConditionReportContextCustomizer@48ee57ad, org.springframework.boot.test.autoconfigure.actuate.observability.ObservabilityContextCustomizerFactory$DisableObservabilityContextCustomizer@1f, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@0, torg.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizer@25615ffd, org.spockframework.spring.mock.SpockContextCustomizer@0, org.springframework.boot.test.context.SpringBootTestAnnotation@87a2127a], contextLoader = org.springframework.boot.test.context.SpringBootContextLoader, parent = null]
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'createApplicationService' defined in com.test.myapp.core.services.ServicesConfig: Unsatisfied dependency expressed through method 'createApplicationService' parameter 0: Invalid bean definition with name 'domainModelMongoRepository' defined in com.test.myapp.core.repository.mongodb.repository.domain.DomainModelMongoRepository defined in @EnableMongoRepositories declared on MongoMetadataConfig: Invalid value type for attribute 'factoryBeanObjectType': java.lang.String
Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'domainModelMongoRepository' defined in com.test.myapp.core.repository.mongodb.repository.domain.DomainModelMongoRepository defined in @EnableMongoRepositories declared on MongoMetadataConfig: Invalid value type for attribute 'factoryBeanObjectType':  java.lang.String
Вот зависимости pom.xml, которые, как мне кажется, могут быть актуальными и, возможно, сломанными из-за обновления, но на данный момент я не могу найти правильную.

Код: Выделить всё

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



org.mongodb
mongodb-driver-sync
4.11.0


org.mongodb
mongodb-driver-reactivestreams
4.11.0


org.apache.commons
commons-collections4
4.4


commons-collections
commons-collections
3.2.2


commons-beanutils
commons-beanutils
1.9.4


org.springframework.data
spring-data-mongodb
3.4.18


org.mongodb
mongo-java-driver


org.mongodb
mongodb-driver-sync


org.mongodb
mongodb-driver-reactivestreams




org.springframework.data
spring-data-commons
2.7.2


xerces
xercesImpl
2.12.2


org.spockframework
spock-core
2.3-groovy-3.0
test


org.spockframework
spock-spring
2.3-groovy-3.0
test


Пожалуйста, помогите советом или информацией.


Подробнее здесь: https://stackoverflow.com/questions/792 ... pring-code
Реклама
Ответить Пред. темаСлед. тема

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

  • Похожие темы
    Ответы
    Просмотры
    Последнее сообщение
  • Обновление Spring-boot-starter-parent до 3.2.12 сломало код Spring
    Anonymous » » в форуме JAVA
    0 Ответы
    24 Просмотры
    Последнее сообщение Anonymous
  • Нет статического ресурса swagger-ui/index.html с Spring-boot-starter-parent с 3.2.10 и Springdoc-openapi-starter-webflux
    Anonymous » » в форуме JAVA
    0 Ответы
    87 Просмотры
    Последнее сообщение Anonymous
  • Нет статического ресурса swagger-ui/index.html с Spring-boot-starter-parent с 3.2.10 и Springdoc-openapi-starter-webflux
    Anonymous » » в форуме JAVA
    0 Ответы
    293 Просмотры
    Последнее сообщение Anonymous
  • Spring-Boot-Starter-AMQP с использованием Spring-Boot-Starter-AMQP
    Anonymous » » в форуме JAVA
    0 Ответы
    32 Просмотры
    Последнее сообщение Anonymous
  • Spring-Boot-Starter-AMQP с использованием Spring-Boot-Starter-AMQP
    Anonymous » » в форуме JAVA
    0 Ответы
    26 Просмотры
    Последнее сообщение Anonymous

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