After searching on google on the right topic, I found the solution in for DTD file. Using local file will solve the problem.
And hibernate-core has a dtd file. So the solution is
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-configuration SYSTEM
"classpath://org/hibernate/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<!-- Database connection properties - Driver, URL, user, password -->
<property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="hibernate.connection.url">${mysql_url}</property>
<property name="hibernate.connection.username">${mysql_user}</property>
<property name="hibernate.connection.password">${mysql_pass}</property>
<property name="hibernate.current_session_context_class">thread</property>
<property name="connection.autocommit">true</property>
<!-- Mapping with model class containing annotations -->
<mapping class="*.hibernatemodel.*" />
</session-factory>
</hibernate-configuration>