Spring Bean with Factory Method from XML to Java Config -


अनुवाद यह बीन का सही तरीका कौन सा है:

  & lt; बीन आईडी = "VelocityEngine" class = "org.springframework.security.saml.util.VelocityFactory" कारखाने-विधि = "मिलेंगेंइन" / & gt;   

एक्सएमएल से जावा-कॉन्फ़िग ( कारखाने-विधि पर ध्यान दें)?

क्या निम्न समाधान सही है? < पूर्व> @ बीन सार्वजनिक वेलाकीइंजिन veloctyEngine () {वापस VelocityFactory.getEngine (); }

क्या स्प्रिंग-दर्शन के अनुसार बेहतर कार्यान्वयन है?

चीयर्स, वी।

जिस तरह से आप ऐसा कर रहे हैं वह सही लगता है।

ब्लॉग पोस्ट देखें।

Comments

Popular posts from this blog

c# - The item with identity 'Id' already exists in the metadata collection. Parameter name: item -

sql - PostgreSQL automatically update row at specific date -

jsp - No mapping found for HTTP request with URI with annotation config Spring MVC and Jetty -