上一页 1 ··· 479 480 481 482 483 484 485 486 487 ··· 493 下一页
摘要: form表单下的按钮在没有指定type类型的时候,如果我们同时给其添加了点击事件的话。会发现我们在点击的时候回默认的把表单也给提交了。如: <script type="text/javascript"> function validate(){ alert("test"); }</ 阅读全文
posted @ 2017-10-11 16:45 星朝 阅读(527) 评论(0) 推荐(0)
摘要: 第一种方式: //先在代码段定义<% long date = new Date().getTime(); request.setAttribute("date", date); %>//然后EL表达式引用${date} 或者 //同样道理 这里得到时间 <% Date nowDat 阅读全文
posted @ 2017-10-11 14:46 星朝 阅读(2005) 评论(0) 推荐(1)
摘要: 目录 创建型 1. Factory Method(工厂方法) 2. Abstract Factory(抽象工厂) 3. Builder(建造者) 4. Prototype(原型) 5. Singleton(单例) 结构型 6. Adapter Class/Object(适配器) 7. Bridge( 阅读全文
posted @ 2017-10-11 13:33 星朝 阅读(274) 评论(0) 推荐(0)
摘要: 一、设计模式的分类 总体来说设计模式分为三大类: 创建型模式,共五种:工厂方法模式、抽象工厂模式、单例模式、建造者模式、原型模式。 结构型模式,共七种:适配器模式、装饰器模式、代理模式、外观模式、桥接模式、组合模式、享元模式。 行为型模式,共十一种:策略模式、模板方法模式、观察者模式、迭代子模式、责 阅读全文
posted @ 2017-10-11 13:29 星朝 阅读(391) 评论(0) 推荐(0)
摘要: 问题BeanFactory not initialized or already closed call 'refresh' before access 2016 08 23 14:22 8565人阅读 评论(2) 收藏 举报 版权声明:本文为博主原创文章,未经博主允许不得转载。 在网上查找很久,很 阅读全文
posted @ 2017-10-10 17:14 星朝 阅读(7187) 评论(0) 推荐(0)
摘要: 9月 11, 2014 | Nix.Huang 目录: 1、区分 {} 和 ${}的不同应用场景 2、spring环境用mybatis spring 的接口而不是Mybatis的原生接口 3、返回Map<ID, Entity>而不是List便于查找 4、使用Map封装查询的结果 5、使用 阅读全文
posted @ 2017-09-27 12:02 星朝 阅读(801) 评论(0) 推荐(0)
摘要: 好了,真正做开发也差不多一年了。一直都是看别人的博客,自己懒得写,而且也不会写博客,今天就开始慢慢的练习一下写博客吧。前段时间刚好在公司遇到这样的问题。 一、举例说明 1 select from user where name = "dato"; 2 3 select from user where 阅读全文
posted @ 2017-09-22 13:00 星朝 阅读(298) 评论(0) 推荐(1)
摘要: mybatis抛出下面的异常: org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException: Error querying datab 阅读全文
posted @ 2017-09-22 11:52 星朝 阅读(1053) 评论(0) 推荐(0)
摘要: 通过MyBatis Generator可以自动生成实体、mapper和dao层,记录一下怎么用的。 主要步骤: 关于mybatis从数据库反向生成实体、DAO、mapper: 参考文章:http://www.cnblogs.com/wangkeai/p/6934683.html第一种方式:main方 阅读全文
posted @ 2017-09-20 16:37 星朝 阅读(9953) 评论(3) 推荐(0)
摘要: [html] view plain copy print?<?xml version="1.0" encoding="UTF 8" ?>  <!DOCTYPE generatorConfiguration PUB 阅读全文
posted @ 2017-09-20 15:17 星朝 阅读(14723) 评论(1) 推荐(1)
上一页 1 ··· 479 480 481 482 483 484 485 486 487 ··· 493 下一页