Can anyone please tell me how do we determine what namespace is required when we write down spring-servlet.xml from scratch?
For example I have the following spring-servlet.xml:
<beans xmlns="**default namespace**">
<context:componet-scan base-package="org.example.controller">
</context:componet-scan>
<bean id="viewResolver" class="org.springframework.web.servlet.view.UrlBasedViewResolver">
<property name="viewClass" value="org.springframework.web.servlet.view.JstlView">
</property>
<property name="prefix">"/WEB-INF/jsp/"
</property>
<property name="suffix" value=".jsp"></property>
</bean>
</beans>
How to determine what should replace “default namespace”?
You need
You may need to replace thr 3.0 version in
schemaLocationwith whatever version you’re using.