You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get an exception. It's relatively detailed, but I still don't understand what I need to do. Update how?
ERROR 19960 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :
***************************
APPLICATION FAILED TO START
***************************
Description:
Binding to target [Bindable@2a484710 type = java.util.List<io.swagger.v3.oas.models.servers.Server>, value = 'none', annotations = array<Annotation>[[empty]], bindMethod = [null]] failed:
Property: gateway.servers[0].local-server.description
Value: "Api-Gateway-V2"
Origin: class path resource [application-prod.yml] - 53:22
Reason: The elements [gateway.servers[0].local-server.description,gateway.servers[0].local-server.url] were left unbound.
Property: gateway.servers[0].local-server.url
Value: "https://localhost:${server.port}"
Origin: class path resource [application-prod.yml] - 52:14
Reason: The elements [gateway.servers[0].local-server.description,gateway.servers[0].local-server.url] were left unbound.
Action:
Update your application's configuration
I also included @EnableConfigurationProperties above my @SpringBootApplication class (I accidentally found it and decided to put it just in case)
I discovered it has to do with Server serialization: if I comment out everything related to servers, the prefix does get resolved. But why? Server does have getters and setters
Besides, I don't want my yaml to be forced to follow that camel case. I haven't found some equivalent of @JsonProperty for @ConfigurationProperties (like @ConfigurationProperty or something)
I don't want to introduce some manually created special tags for grouping
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I want Swagger to group my endpoints by controllers, as it usually does
I tried this
I get an exception. It's relatively detailed, but I still don't understand what I need to do. Update how?
I also included
@EnableConfigurationProperties
above my@SpringBootApplication
class (I accidentally found it and decided to put it just in case)I discovered it has to do with
Server
serialization: if I comment out everything related to servers, the prefix does get resolved. But why?Server
does have getters and settersBesides, I don't want my yaml to be forced to follow that camel case. I haven't found some equivalent of
@JsonProperty
for@ConfigurationProperties
(like@ConfigurationProperty
or something)I don't want to introduce some manually created special tags for grouping
How do I achieve my goal?
Beta Was this translation helpful? Give feedback.
All reactions