java????????
???????????? ???????[ 2017/4/19 11:35:56 ] ????????Java ?????
????//?????????????????????????????
????public static Employee login(String name??String pwd){
????Employee employee = null;
????Connection conn=null;
????//?????????????????
????try {
????Class.forName(“org.sqlite.JDBC”);
????//?????????
????conn = DriverManager.getConnection(“jdbc:sqlite:d:/company.db”);
????//????preparedStatement???????????????SQL???
????PreparedStatement ps = conn.prepareStatement(“select * from employee where name=? and pwd=?”);
????ps.setString(1?? name);
????ps.setString(2?? pwd);
????ResultSet rs = ps.executeQuery();
????while(rs.next()){
????employee = new Employee(rs.getLong(1)??rs.getString(2)??rs.getString(3)??rs.getInt(4));
????}
????} catch (ClassNotFoundException e) {
????e.printStackTrace();
????} catch (SQLException e) {
????e.printStackTrace();
????}finally {
????if(conn!=null){
????try {
????conn.close();
????} catch (SQLException e) {
????// TODO Auto-generated catch block
????e.printStackTrace();
????}
????}
????}
????return employee;
????}
????//?????????е???????????
????public static List fetchData(){
????Employee employee;
????//???????List????
????List list = new ArrayList();
????//???????????
????Connection conn = null;
????try {
????//?????????????????
????Class.forName(“org.sqlite.JDBC”);
????//?????????
????conn = DriverManager.getConnection(“jdbc:sqlite:d:/company.db”);
????//????????SQL???????
????Statement state = conn.createStatement();
????//???SQL?????SQL??????????String??????????
????String string = “Select * from employee”;
????//????Statement?????е??????????SQL????????ResultSet??????????
????ResultSet set = state.executeQuery(string);
????//????next??????get???????????Employee?????У????????б??
????while(set.next()){
????employee = new Employee(set.getLong(1)??set.getString(2)??set.getString(3)??set.getInt(4));
????list.add(employee);
????}
????} catch (ClassNotFoundException e) {
????e.printStackTrace();
????} catch (SQLException e) {
????e.printStackTrace();
????}finally {
????if (conn!= null) {
????try {
????//???????????????????????????conn.
????conn.close();
????} catch (SQLException e) {
????e.printStackTrace();
????}
????}
????}
????return list;
????}
????}
???????????????????????漰???????????????????SPASVOС??(021-61079698-8054)?????????????????????????
??????
Java???????????Щ???????????????Java????????????????Java?б???Map????????Java Web???????????????Java??????????????д?????Java????????7???????????????????????(java .net ?????)???Java??????????Python??????Java webdriver??λ????????′????е?????Java??д??????????????????Java???????????????JavaScript????????????Java?????????????????? Java???????10??????????????Java?м????????????????java???????ü???????????м???????????????????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11????????
?????????App Bug???????????????????????Jmeter?????????QC??????APP????????????????app?????е????????jenkins+testng+ant+webdriver??????????????JMeter????HTTP???????Selenium 2.0 WebDriver ??????