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

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

c# - Split String between 2 substrings without removing delimiters -

asp.net - Procedure or function "Procedure name" expects a parameter "Param name" which was not supplied occurs rarely -