- 浏览: 2321 次
- 性别:
最新评论
文章列表
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
public class ConfigManager {
private static ConfigManager configManager;
private static Properties properties;
private ConfigManager() {
String configFile = "db.properties";
properties = new Proper ...
public final class JdbcUtils{
private JdbcUtils(){}
static{
try{
Class.forName("");
}catch(ClassNotFoundException e){
thorw new ExceptionInInitializerError(e)
}
}
public static Connection getConnection() throws SQLException(){
return DriverM ...
不使用第三方jar包,使用自定义标签进行替代jsp页面中的java代码,步骤:
1 编写java类
继承Packages包下Tag接口实现类TagSupport,
重写doStartTag() 方法
示例:
public class Demo extends TagSupport{
@Override
public int doStartTag() throws JspException{
HttpServletRequest request =
...
Initial SessionFactory creation failed.org.hibernate.HibernateException: Unable to instantiate default tuplizer [org.hibernate.tuple.entity.PojoEntityTuplizer]
我得异常原因:
javabean中对应的字段的get和set名称不对应.