Quantcast
Channel: JetBrains Developer Community : Thread List - IntelliJ IDEA Users
Viewing all articles
Browse latest Browse all 5661

No view resolvers found

$
0
0

How do you correctly set up your servlet.xml so that the view resolver is detected by Intellij?

 

in web.xml i have a DispatcherServlet configured named 'spring' that is configured with the config file spring-servlet.xml

 

in spring-servlet.xml there is the following

 

    <context:component-scan base-package="my package"/>

    <mvc:annotation-driven />

 

    <bean id="internalResourceViewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver">

        <property name="viewClass" value="org.springframework.web.servlet.view.JstlView"/>

        <property name="prefix" value="/WEB-INF/htm/"/>

        <property name="suffix" value=".jsp"/>

    </bean>

 

 

Intellij detects that my controller is configured by that component scan, but does not see the view resolver so all of my ' new ModelAndView("foo")' show the message 'No view resolvers found. 

 

Are there any special requirements to configuring the view resolver to cause it to be detected by Intellij?


Viewing all articles
Browse latest Browse all 5661

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>