Java沉痛注意点


1、spring @Value 获取application.properties文件值不能写static,否者注入为null

# 在使用AES加密和解密时,使用@Value获取key进行解密,key一直为空,解密永远失败