Read data read about springboot international properties file error problem

Like this, in fact, the code is not the problem itself, but the idea version of the problem caused by
failing to panic
Here Insert Picture Description
as long as we change what information inside application.properties

spring.messages.basename=i18n.login
改成
spring.messages.basename=i18n/login

In the run is successful
Here Insert Picture Description
ok

Published 444 original articles · won praise 15 · views 10000 +

Guess you like

Origin blog.csdn.net/zt2650693774/article/details/104422368