1. 程式人生 > >springmvc 獲取使用 propertiies 檔案定義變數

springmvc 獲取使用 propertiies 檔案定義變數

system.properties

test=111

 

@Value("${test}") String tbs) {
        System.out.println("############"+tbs.get);

    }
    
    /*@Value("${test}")   
    public  String testbzqStr;   */