M
M
MaxLich2018-10-12 12:57:09
Java
MaxLich, 2018-10-12 12:57:09

Which Spring ioc container class to write in web.xml if I am not using Spring WebMVC?

You need to move from xml configuration to java configuration. Application for weblogic. Spring WebMVC is not used, only pure servlets (the application works with queues). What class to write instead of the questions below?

<context-param>
        <param-name>contextClass</param-name>
        <param-value>
            ???
        </param-value>
    </context-param>
    <context-param>
        <param-name>contextConfigLocation</param-name>
        <!--<param-value>classpath:applicationContext.xml</param-value>-->
        <param-value>ru.company.app.config.AppConfig</param-value>
    </context-param>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
MaxLich, 2018-10-12
@MaxLich

I found the solution myself. We need the same class as for the Spring WebMVC use case:

org.springframework.web.context.support.AnnotationConfigWebApplicationContext

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question