<kbd id="afajh"><form id="afajh"></form></kbd>
<strong id="afajh"><dl id="afajh"></dl></strong>
    <del id="afajh"><form id="afajh"></form></del>
        1. <th id="afajh"><progress id="afajh"></progress></th>
          <b id="afajh"><abbr id="afajh"></abbr></b>
          <th id="afajh"><progress id="afajh"></progress></th>

          KyFrameJAVA 的開發(fā)框架工具

          聯(lián)合創(chuàng)作 · 2023-09-21 15:43

          KyFrame 是一套JAVA的開發(fā)框架工具。

          測試代碼:

          package action;
          import org.springframework.beans.BeansException;
          import org.springframework.context.ApplicationContext;
          import org.springframework.context.support.FileSystemXmlApplicationContext;
          
          import dao.User;
          import dao.UserDAO;
          
          
          /**
           * @author syb
           *
           */
          public class Test {
              /**
               * @param args
               */
              public static void main(String[] args) {
                  // TODO Auto-generated method stub
                  try {
          //下面兩句獲取上下文及hibernate的數(shù)據(jù)模型對象DAO
                      ApplicationContext ctx = new FileSystemXmlApplicationContext("C:\\Users\\lenovo\\Workspaces\\MyEclipse 8.5\\ssh20140605\\src\\applicationContext.xml");
                      UserDAO userDAO = (UserDAO) ctx.getBean("UserDAO");
                      User u=new User();
                      u.setId(0);
                      u.setName("111");
                      u.setCity("w");
                      u.setCountry("sss");
                      //u.setCreditLimit(new Integer(10));
                      userDAO.save(u);
                  } catch (BeansException e) {
                      System.out.println(e.getMessage());
                  }
                  catch(Exception ee){
                      System.out.println(ee.getMessage());
                  }
              }
          }
          瀏覽 20
          點贊
          評論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報
          評論
          圖片
          表情
          推薦
          點贊
          評論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報
          <kbd id="afajh"><form id="afajh"></form></kbd>
          <strong id="afajh"><dl id="afajh"></dl></strong>
            <del id="afajh"><form id="afajh"></form></del>
                1. <th id="afajh"><progress id="afajh"></progress></th>
                  <b id="afajh"><abbr id="afajh"></abbr></b>
                  <th id="afajh"><progress id="afajh"></progress></th>
                  av搬运一区二区三区在线观看 | 亚洲国产色情视频 | 成人一级电影 | 97人妻色色 | 色婷婷视频在线 |