#Where to get Spring MVC xml DTD files?

24 messages · Page 1 of 1 (latest)

dim plover
#

So I was doing a project using Spring MVC but I couldn't find the proper dtd files anywhere in the web, then I remeber I had done a course, I copied from there. But not everyone had done the course and neither is good practice to go back to the courses for reference. Rather I would like some official docs for this.
file name: dispatcher-servlet.xml

<?xml version="1.0" encoding="UTF-8"?>

<beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:mvc="http://www.springframework.org/schema/mvc"
    xmlns:ctx="http://www.springframework.org/schema/context"
    xsi:schemaLocation="http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc.xsd
        http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
        http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd">

    <ctx:component-scan base-package="com.sm"></ctx:component-scan>
    <ctx:annotation-config></ctx:annotation-config>
    
    <bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">
        <property name="prefix" value="/WEB-INF/views/"></property>
        <property name="suffix" value=".jsp"></property>
    </bean>

</beans>
small acornBOT
#

This post has been reserved for your question.

Hey @dim plover! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

dim plover
#

This is the part i was talking about

<?xml version="1.0" encoding="UTF-8"?>

<beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:mvc="http://www.springframework.org/schema/mvc"
    xmlns:ctx="http://www.springframework.org/schema/context"
    xsi:schemaLocation="http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc.xsd
        http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
        http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd">

//Your bean configs goes here

</beans>
timid turret
dim plover
timid turret
#

?

dim plover
#

while creating a xml file

dim plover
# timid turret ?

I meant to say where are they getting this definitions? it's not a official doc

timid turret
#

?

#

maybe it's copied from the documentation?

dim plover
timid turret
#

What soecifically are you looking for?

dim plover
dim plover
small acornBOT
timid turret
#

like servlet.xml in combination with site:spring.io and similar

dim plover
#

alright, thanks!