Skip to content
This repository was archived by the owner on Jun 29, 2020. It is now read-only.

zeldigas/spring-boot-conversion-problem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sample project showing problem with configuration properties exception

UPD: it is fixed with boot 2.2.0.RELEASE. See spring-projects/spring-boot#18509 for details

By default application would show the problem

Extra tests

Open com.example.conversionproblem.AppProperties and uncomment second field:

@Valid
private Map<MyEnum, NestedProperty> myEnumMap;

to see that message would change

What else

There are 2 more spring profiles that show options with different behaviour:

  1. good - it proofs that when there is no validation issues, context is created fine
  2. enum - it proofs that for more simple scenario - explicit enum typing of keys spring generates expected validation message

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages