摘要:
安装mysql时需要的全套安装包mysql-5.1.73-3.el6_5.i686.rpmmysql-libs-5.1.73-3.el6_5.i686.rpmmysql-server-5.1.73-3.el6_5.i686.rpmopenssl-1.0.1e-16.el6_5.14.i686.rpm...
阅读全文
posted @ 2015-06-09 23:27
jacunjpg
阅读(529)
推荐(0)
编辑
摘要:
TestDao.java(测试类)@Testpublic void findCollectionByConditionNoPage(){ApplicationContext ac = new ClassPathXmlApplicationContext("beans.xml");IElecTextS...
阅读全文
posted @ 2015-05-28 22:49
jacunjpg
阅读(2685)
推荐(0)
编辑
摘要:
AuthImageServlet.javapackage com.util.servlet;import java.awt.Color;import java.awt.Font;import java.awt.Graphics;import java.awt.image.BufferedImage;import java.io.IOException;import java.io.OutputStream;import java.util.Random;import javax.imageio.ImageIO;import javax.servlet.ServletException;impo
阅读全文
posted @ 2013-10-20 18:38
jacunjpg
阅读(281)
推荐(0)
编辑
摘要:
package com.abc.dao;import java.sql.Connection;import java.sql.PreparedStatement;import java.sql.ResultSet;import java.sql.SQLException;import java.util.ArrayList;import java.util.List;import com.abc.entity.Student;import com.abc.entity.Users;public class UsersDao extends BaseDao {public Users findB
阅读全文
posted @ 2013-10-03 12:32
jacunjpg
阅读(540)
推荐(0)
编辑
摘要:
package com.abc.dao;import java.sql.Connection;import java.sql.DriverManager;import java.sql.ResultSet;import java.sql.SQLException;import java.sql.Statement;public class BaseDao {public Connection getConn(){Connection conn=null;try {Class.forName("com.mysql.jdbc.Driver");} catch (ClassNot
阅读全文
posted @ 2013-10-03 12:24
jacunjpg
阅读(166)
推荐(0)
编辑
摘要:
连接Oracle数据库代码 连接oracle数据库的代码如下:import java.sql.Connection;import java.sql.DriverManager;import java.sql.PreparedStatement;import java.sql.ResultSet;import java.sql.SQLException;public class JdbcOracle {public static Connection conn=null;public static PreparedStatement pstamt=null;public static Resu.
阅读全文
posted @ 2013-02-19 13:15
jacunjpg
阅读(344)
推荐(0)
编辑