public HitsResource(@PathParam("type") CacheType type) {
this.type = type;
}
...
錛岃繍琛岀殑鏃跺€欐姤閿欙細
Missing dependency for constructor public 銆傘€傘€?br />
緇忔煡錛屽彂鐜癹ersey鐨勫紑鍙戜漢鍛橈紝璇翠簡濡備笅涓€鍙ヨ瘽錛?br />
For 1.3 i turned on error checking for missing dependencies rather
than injecting null values.
鏄庣櫧浜嗭紝鍥犱負鎴戠殑CacheType鏄釜鏋氫婦綾伙紝榪欐牱錛屽鏋渰type}鍙傛暟浼犻€掔殑鍊間笉鍦ㄨ繖涓灇涓句腑鐨勮瘽錛屽氨浼氬鑷寸▼搴忓嚭閿欍€?br />
浜庢槸鏀瑰彉浜嗕竴涓嬫瀯閫犳柟娉曪紝闂瑙e喅錛?br />
public HitsResource(@PathParam("type") String type) {
this.type = CacheType.valueOf(type);
}