Today suddenly encountered a problem, is added hibernate framework of the project in the start, particularly slow, unexpectedly reached more than 4 minutes, check to find out, see my bean Class *.hbm.xml, there is such a way:
<?xml version= "1.0"?>
<! DOCTYPE hibernate-mapping Public "-//hibernate/hibernate mapping DTD 3.0//en"
"Http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd" >
......
Then I replaced it with:
<?xml version= "1.0"?>
<! DOCTYPE hibernate-mapping Public "-//hibernate/hibernate mapping DTD 3.0//en"
"Http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd" >
......
This will not slow down when it starts.
The reason is due to the Hiberante version of the problem, in the high version of the above can, in the lower version of the above, when not connected to the network will be error, networking when the start particularly slow.
When you visit in the browser: HTTP://WWW.HIBERNATE.ORG/DTD/HIBERNATE-MAPPING-3.0.DTD this time, it will download a DTD file.
About projects with Hibernate framework start particularly slow issues