启动springBoot工程时报错EncryptionBootstrapConfiguration.RsaEncryptionConfiguration:之后工程启动停止:
Negative matches:
-----------------
EncryptionBootstrapConfiguration.RsaEncryptionConfiguration:
Did not match:
- Keystore nor key found in Environment (EncryptionBootstrapConfiguration.KeyCondition)
Matched:
- @ConditionalOnClass found required class 'org.springframework.security.rsa.crypto.RsaSecretEncryptor'; @ConditionalOnMissingClass did not find unwanted class (OnClassCondition)
EncryptionBootstrapConfiguration.VanillaEncryptionConfiguration:
Did not match:
- @ConditionalOnMissingClass found unwanted class 'org.springframework.security.rsa.crypto.RsaSecretEncryptor' (OnClassCondition)
网上搜索一般告诉你application配置文件出错,但是也不尽然。
我一再检查配置文件确认没有错误,之后发现是在其他类中从配置文件加载变量时,加载的配置项zaiapplication中没有或书写错误,例如: