Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

configuration processor not working #16257

Closed
ghost opened this issue Mar 19, 2019 · 2 comments
Closed

configuration processor not working #16257

ghost opened this issue Mar 19, 2019 · 2 comments
Labels
status: invalid An issue that we don't feel is valid

Comments

@ghost
Copy link

ghost commented Mar 19, 2019

hi,i am using spring boot 2.1.3,custom property via configuration processor,
Expecting a 'String' but got a 'Mapping' node,it works fine such as server.serverlet.context-path
it works on previous version such as boot 2.0.3

environment:
Eclipse IDE for Java Developers
Version: 2018-12 (4.10.0)
Build id: 20181214-0600
Sts 4.10 Plugin

@see https://github.com/iPhotoner/demonstration-repository.git demo-configuration-processor
what's wrong with it,thank you!

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Mar 19, 2019
@wilkinsona
Copy link
Member

Thanks for the sample. The problem is that you have defined cp as a string property in your additional metadata.

@wilkinsona wilkinsona added status: invalid An issue that we don't feel is valid and removed status: waiting-for-triage An issue we've not yet triaged labels Mar 19, 2019
@ghost
Copy link
Author

ghost commented Mar 20, 2019

i remove /META-INF/additional-spring-configuration-metadata.json,
yes,it works now,add this json file cause there will be a yellow underline on String property,
so i add it hand-actuated.thank you,@wilkinsona

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: invalid An issue that we don't feel is valid
Projects
None yet
Development

No branches or pull requests

2 participants