Skip to content

DevTools triggers eager initialization of jaxws-client defined in XML config #20430

@laurentschoelens

Description

@laurentschoelens

When including springboot-devtools in my java applications, CXF JAX-WS clients being initialized with XML config were stopped working since address being populated with the ${placeholder} instead of real value defined in properties.

For me, this is caused by DevToolsDataSourceAutoConfiguration which is calling org.springframework.beans.factory.ListableBeanFactory.getBeanNamesForType(Class<?>) (line 164), making eagerInit called before properties are parsed.

Currently under Java 8 using SpringBoot 2.0.9 (Spring 5.0.13).
Same code exists in current github code.

Could you please provide a fix for this.
Adding the following gives me a fix but I don't want to add this on every java app...

@SpringBootApplication(exclude = { org.springframework.boot.devtools.autoconfigure.DevToolsDataSourceAutoConfiguration.class })

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions