SpringBoot entity class case conversion

The entity class is written in uppercase, why is it automatically converted to lowercase? Springboot processed the fields when serializing and deserializing .

Entity class fields:

Test returns fields:

 

Solution: Add the annotation @JsonProperty to the field, and it will be no problem to return the result set.

 

Restart the project and revisit:

 

 

Guess you like

Origin blog.csdn.net/kking_Ran/article/details/128183440