Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between Spring DOCTYPE and <beans> tag

In Spring there is a XML configuration for bean right?

What is the difference between:

<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">

and

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

Also i'm a bit curious with the difference between SpringMVC, MVC and just Spring

like image 576
newbie Avatar asked Jan 12 '23 14:01

newbie


1 Answers

Difference is in formats of documents definitions. First is called DTD, second - XSD. Both are used to describe possible contents of xml document. DTD is older than XSD. XSD is more flexible and powerful than DTD. More differences you can see here.

like image 189
yname Avatar answered Jan 17 '23 18:01

yname