configuration « XML « Spring Q&A





1. XML-less configuration for spring    stackoverflow.com

I have the following configuration bean for a non web app

@Configuration
public class MyBeans {

    @Bean
    @Scope(value="prototype")
    MyObject myObject() {
   ...

2. Spring Configuration    stackoverflow.com

I've been reading up on Spring and it keeps talking about the spring configuration data you need, but where do you put this xml file? and what do you save it ...

3. Combining Java & xml spring configuration for testing    stackoverflow.com

It is explained here how combining java & xml configuration is done. It works. Test Context framework has java config support since 3.1.0.M2 :

@ContextConfiguration(loader = AnnotationConfigContextLoader.class)
public class LangDetectorTest extends ...

4. Spring XML file configuration hierarchy help/explanation    stackoverflow.com

When I first started learning about Spring, things were configured in the applicationContext.xml file. Then as I started to read books specifically on more recent versions of spring, they've all done ...

5. spring configuration XML files location in multiple projects - what's the best practice?    stackoverflow.com

We have multiple projects, and there are spring configuration XMLs in all of them. We're contemplating 2 options: A) Loading the spring files from the classpath, by using import "classpath:a.xml". In this ...

6. multiple xml configuration files    forum.springsource.org

Hello, Is it possible to use multiple xml configuration files for one context? I have a very large config file that I would like to cut in separate parts but i ...

7. @Configuration doesn't work while the same xml setup do work    forum.springsource.org

Feb 12th, 2011, 03:40 PM #1 ATEGEV View Profile View Forum Posts Private Message Junior Member Join Date Jul 2010 Posts 2 @Configuration doesn't work while the same xml setup do ...

8. Where can I get some documents about xml-based configuration    forum.springsource.org

I'm using spring 3.0, and I like the xml-based configuration, but I can't find a document about it in details. Would you like to give me some advices? Thanks a lot. ...

9. @Configuration vs Xml configuration    forum.springsource.org

Hi, I would like to know if one can make a change to the ApplicationContext.xml without reloading the application. If yes then why would one choose JavaConfig instead of the xml ...





10. Problem using @Configuration with Xml Configuration    forum.springsource.org

Problem using @Configuration with Xml Configuration Hello, I am trying to configure spring using @Configuration and Xml Configuration in Web application but I have a problem. What I done so far: ...

11. Configuration XML files    forum.springsource.org

Hello, I want to define a dependency between beans that are defined in 2 different XML files. These 2 XML files are part of 2 different jars. 1 Jar is a ...

12. Possible to Use XML and Java Based Configurations?    forum.springsource.org

Is it possible to use java based configuration (@Configuration/@Bean) while also using xml based configurations? Essentially, there are a few new configurations I need to set in my web applications and ...

13. Several XML configuration files    forum.springsource.org

Hi spring users, I would like to know if it is possible to have two configuration files in which i have: 1) Bean A and B 2) Bean C and D ...

14. Proprietary xml configuration    forum.springsource.org

Proprietary xml configuration I recently used Spring on a non-web based project. I did not have much success. My problem stemmed from needing a non-Spring (proprietary format) configuration file: one that ...

15. Spring XML configuration file random error    forum.springsource.org

Spring XML configuration file random error Hello, Our webapplication works with Spring 2.X on a Websphere 6 environment. Every now and then we get an error when Spring tries to read ...

16. Configuring Spring at Runtime (not from an xml file)    forum.springsource.org

Configuring Spring at Runtime (not from an xml file) I'm trying to figure out a good way to configure spring at runtime. I got this working using a GenericApplicationContext, but I ...





17. Global XML Configuration Files    forum.springsource.org

Global XML Configuration Files I did some googling and searching through this forum but could not find the answer to this question. I have a shared drive that everyone can access ...

18. How to pass command line parameters to the spring configuration xml    forum.springsource.org

How to pass command line parameters to the spring configuration xml Hi I am using the org.springframework.jdbc.datasource.DriverManagerD ataSource in my set up file. I would like to know how to pass ...

19. What's wrong with my spring configuration xml file?    forum.springsource.org

What's wrong with my spring configuration xml file? I'm using springframework 1.2.9 to test my application. but when running, org.xml.sax.SAXParseException is thrown. I can't figure out where the problem is. Could ...

20. Configurable xml from    forum.springsource.org

Configurable xml from Hello, I am new to Spring and trying to migrate from older MVC based framework to Spring. The application is based on WPS Portal Server. In existing application, ...

21. Anyway to make changes to spring configuration XML w/o restarting webserver?    forum.springsource.org

Sometimes in testing, I would like to be able to make changes to the web server's applicationContext.xml file and then have the web server recognize the changes without having to restart ...

22. reference to spring configuration xml in different package    forum.springsource.org

Is there any way , so I can import a spring configuration xml file which reside in different project/package ? for example : I have Two different project , LCWPOne having ...

23. XML based VS Anotations based Configuration OR MIX?    forum.springsource.org

what would you prefer for your configuration? transactional best for annotations...? xml based best because of visibility and gives the outline...? how about the pros & cons...? metadata? time compiling? and ...

24. configuration of xml files    forum.springsource.org

helo i am using spring 3.0 and jnuit 4.5+ How can i configure my xml files in my test class for DB access to test my DAO methods with junit Help ...

25. How to include a customized MessageHandler in the XML Spring configuration    forum.springsource.org

Hello, My goal is to have a customized FileWritingMessageHandler: the current version (2.0M6) of the class does not allow to have a dynamic directory (a directory determined at runtime depending on ...

26. DispatchServlet and multiple xml configuration files    forum.springsource.org

Hello, I want to Spring MVC and other layers ( services, dao ). How can I separate configurations of presentation elements, business services element and dao/persistence elements into several xml configuration ...

27. "List" of Interfaces in Spring Configuration XML    forum.springsource.org

"List" of Interfaces in Spring Configuration XML I Am very new to Spring. I have an Interface (MessageHandler ) which has a get method, this method returns a list of Implementations ...

28. Spring Configuration Error - XML issue?    java-forums.org