摘要:
情况:当在asp:DropDownLis点击选取其中的一个值来响应datalist的值。 <form id="form1" runat="server"> <div> <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionSt 阅读全文
摘要:
题目:输入两个单调递增的链表,输出两个链表合成后的链表,当然我们需要合成后的链表满足单调不减规则。 解法://递归解法 public class MixLink { /* public class ListNode { int val; ListNode next = null; ListNode( 阅读全文
摘要:
var xmlHttpReq = false; if(window.XMLHttpRequest){ xmlHttpReq = new XMLHttpRequest() }else if(window.ActiveXObject){ xmlHttpReq =new ActiveXobject("Mi 阅读全文
摘要:
错误代码(也称作状态代码),指为服务器所接收每个请求(网页点击)分配的 3 位数代码。多数有效网页点击都有状态代码 200("正常")。"网页未找到"错误会生产 404 错误。某些常见的代码以粗体显示。 1xx(临时响应) 用于表示临时响应并需要请求者执行操作才能继续的状态代码。 代码 说明 100 阅读全文
摘要:
加载驱动方法 1.Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver"); 2. DriverManager.registerDriver(new com.mysql.jdbc.Driver()); 3.System.setProp 阅读全文
摘要:
PROPAGATION_REQUIRED Support a current transaction; create a new one if none exists. 支持一个当前事务;如果不存在,创建一个新的。 This is typically the default setting of a 阅读全文
摘要:
第一种: //驱动程序名 String driver = "com.mysql.jdbc.Driver"; //URL指向要访问的数据库名mydata String url = "jdbc:mysql://localhost:3306/admin"; //MySQL配置时的用户名 String us 阅读全文
摘要:
ssh项目jar包项目内容:1. 加入 Spring1). 加入 jar 包2). 配置 web.xml 文件3). 加入 Spring 的配置文件.(application.xml)2. 加入 Hibernate1). 同时建立持久化类, 和其对应的 .hbm.xml 文件, 生成对应的数据表2)... 阅读全文
摘要:
Struts2与Spring整合后,可以使用Spring的配置文件applicationContext.xml来描述依赖关系,在Struts2的配置文件struts.xml来使用Spring创建的bean。1.导入jar包2.配置web.xml文件。 spring-6 conte... 阅读全文
摘要:
Spring和Hibernate处于不同的层次,Spring关心的是业务逻辑之间的组合关系,Spring提供了对他们的强大的管理能力,而Hibernate完成了OR的映射,使开发人员不用再去关心SQL语句,直接与对象打交道。Spring提供了对Hibernate的SessionFactory... 阅读全文