springBoot 注入Boolean型常量的时候,yml或者properties配置文件中的常量名称不可以是is开头,否则 注入失败
例如:
以下为正确:
report:
backupSucessFile: true
beginOnStart: true
错误:
report:
isBackupSucessFile: true
isStart: true
springBoot 注入Boolean型常量的时候,yml或者properties配置文件中的常量名称不可以是is开头,否则 注入失败
例如:
以下为正确:
report:
backupSucessFile: true
beginOnStart: true
错误:
report:
isBackupSucessFile: true
isStart: true