java關鍵字staticstatic keyword in Java is used a lot in java programming. Java static keyword is used to create a Class level variable in java. static variables and methods are part of the class, not the instances of the class. Java中的static關鍵字在Java編
問題:springmvc給靜態變量注入報:@Autowired annotation is not supported on static fields 原因:spring annotation不支持靜態變量注入 解決: 方法一:把get,set方法的static修飾符去掉,然后在set方法上面加@Autowired即可