文章列表
根据Hibernate的docs文档搭建Hibernate环境时,运行提示:Exception in thread "main" org.hibernate.HibernateException: Could not parse configuration: /hibernate.cfg.xml
原因是:
docs里的hibernate.cfg.xml的文件头是:
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
&q ...
配置文件:
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
&l ...
1.配置web.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_9" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml ...
1.标记选择器
<style>
h1{
color:red;
font-size:25px;
}
</style>
2.ID选择器
<style>
#id{
color:red;
font-size:25px;
}
</style>
3.类别选择器
<style>
.class{
color:red;
font-size:25px;
}
</style>
其中,红色部分可变