summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
7307e8b)
Ohne die Hinzugefügte @Qualifier-Annotation für das Attribut
AcceleratorFilter.defaultBufferSize kommt es beim Laden zu einem Fehler,
wenn keine Bean mit passenden Namen vorliegt.
import org.springframework.beans.factory.annotation.Autowire;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.beans.factory.annotation.Autowire;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Configurable;
+import org.springframework.beans.factory.annotation.Qualifier;
@Autowired CacheControl cacheControl;
@Autowired CacheControl cacheControl;
- @Autowired(required=false) Integer defaultBufferSize = DEFAULT_BUFFER_SIZE;
+ @Autowired(required=false) @Qualifier("defaultBufferSize") Integer defaultBufferSize = DEFAULT_BUFFER_SIZE;
@Autowired String eTag;
@Autowired Boolean weak;
@Autowired Long lastModified;
@Autowired String eTag;
@Autowired Boolean weak;
@Autowired Long lastModified;