\n context.registerShutdownHook(); \u662f\u4e00\u4e2a\u94a9\u5b50\u65b9\u6cd5\uff0c\u5f53jvm\u5173\u95ed\u9000\u51fa\u7684\u65f6\u5019\u4f1a\u8c03\u7528\u8fd9\u4e2a\u94a9\u5b50\u65b9\u6cd5\uff0c\u5728\u8bbe\u8ba1\u6a21\u5f0f\u4e4b \u6a21\u677f\u6a21\u5f0f\u4e2d \u901a\u8fc7\u5728\u62bd\u8c61\u7c7b\u4e2d\u5b9a\u4e49\u8fd9\u6837\u7684\u94a9\u5b50\u65b9\u6cd5\u7531\u5b9e\u73b0\u7c7b\u8fdb\u884c\u5b9e\u73b0\uff0c\u8fd9\u91cc\u7684\u5b9e\u73b0\u7c7b\u662fAbstractApplicationContext\uff0c\u8fd9\u662fspring \u5bb9\u5668\u4f18\u96c5\u5173\u95ed\u7684\u65b9\u6cd5\u3002\n <\/div> \n
\n \n <\/div> \n<\/dd>","orderid":"0","title":"Spring \u7684 init-method \u548c destory-method","smalltitle":"","mid":"0","fname":"JAVA","special_id":"0","bak_id":"0","info":"0","hits":"511","pages":"1","comments":"0","posttime":"2014-11-24 12:04:53","list":"1416801893","username":"admin","author":"","copyfrom":"","copyfromurl":"","titlecolor":"","fonttype":"0","titleicon":"0","picurl":"https:\/\/www.cppentry.com\/upload_files\/","ispic":"0","yz":"1","yzer":"","yztime":"0","levels":"0","levelstime":"0","keywords":"
Spring<\/A> init-method<\/A> destory-method<\/A>","jumpurl":"","iframeurl":"","style":"","template":"a:3:{s:4:\"head\";s:0:\"\";s:4:\"foot\";s:0:\"\";s:8:\"bencandy\";s:0:\"\";}","target":"0","ip":"114.215.104.12","lastfid":"0","money":"0","buyuser":"","passwd":"","allowdown":"","allowview":"","editer":"","edittime":"0","begintime":"0","endtime":"0","description":"Spring \u7684 init-method \u548c destory-method","lastview":"1703105340","digg_num":"3988","digg_time":"0","forbidcomment":"0","ifvote":"0","heart":"","htmlname":"","city_id":"0"},"page":"1"}