03 2013 档案

Hello Spring(5)ApplicationContext
摘要:Tester.java 1 package test; 2 3 import org.springframework.context.ApplicationContext; 4 import org.springframework.context.support.ClassPathXmlApplicationContext; 5 import user.Dao; 6 7 public class Tester { 8 9 public static void main( String[] args){10 11 /*Resource r =... 阅读全文

posted @ 2013-03-26 17:08 Livon 阅读(197) 评论(0) 推荐(0)

Hello Spring(4)Dao
摘要:文件结构user.Bean.java 1 package user; 2 3 public class Bean { 4 5 private String name; 6 private String passwork; 7 8 public String getName() { 9 return name;10 }11 public void setName(String name) {12 this.name = name;13 }14 public String getPassw... 阅读全文

posted @ 2013-03-26 16:28 Livon 阅读(306) 评论(0) 推荐(0)

Hello Spring(3)ConnectionUtility
摘要:ConnectionUtility.java 1 package test; 2 3 import java.sql.Connection; 4 import java.sql.DriverManager; 5 6 public class ConnectionUtility { 7 8 private String userName; 9 private String password;10 private String dbUrl;11 private String dbDriver;12 13 public Connectio... 阅读全文

posted @ 2013-03-26 15:50 Livon 阅读(220) 评论(0) 推荐(0)

Hello Spring(2)Computer with Usb interface
摘要:目录结构 files structure新建一接口new InterfaceUsb.java1 package test;2 3 public interface Usb {4 5 public void read();6 public void write();7 8 }Udisk.java 1 package test; 2 3 public class Udisk implements Usb { 4 5 @Override 6 public void read() { 7 // TODO Auto-generated meth... 阅读全文

posted @ 2013-03-26 15:09 Livon 阅读(279) 评论(0) 推荐(0)

Hello Spring(1)代替属性文件
摘要:文件结构:files structureHelloSpring.java (1) 1 package test; 2 3 public class HelloSpring { 4 5 private String name; 6 7 public String getName() { 8 return name; 9 }10 11 public void setName(String name) {12 this.name = name;13 }14 15 public String hell... 阅读全文

posted @ 2013-03-26 14:20 Livon 阅读(185) 评论(0) 推荐(0)

Spring 实战
摘要:下载:http://www.springsource.org/spring-frameworkhttp://www.springsource.org/download/community解压:C:\Livon\Java\Tools\Spring\spring-framework-3.2.2.RELEASE-dist\spring-framework-3.2.2.RELEASE\libsHelloWorld.javabeans.xml参考:http://topinking.iteye.com/blog/239821 1 <?xml version="1.0" encod 阅读全文

posted @ 2013-03-26 10:37 Livon 阅读(242) 评论(0) 推荐(0)

Spring 学习笔记
摘要:官网:http://www.springsource.org/Get Started下载: Spring Tool Suitehttp://www.springsource.org/sts解压:看教程:http://www.springsource.org/tutorials视频:Getting Started with Spring and SpringSource Toolhttp://v.youku.com/v_show/id_XNDEyNzExMTY0.html( 未完 。。。 ) 阅读全文

posted @ 2013-03-25 16:59 Livon 阅读(131) 评论(0) 推荐(0)

Eclipse 加载外部应用程序到 Tomcat
摘要:问题:在 Eclipse 开发 Web 应用程序时,如何加载 workspace 以外的其它应用。1、打开 Tomcat 服务器的模块管理界面。 在 Server 面板中,双击 Tomcat 服务器,或者 右键 > Open 2、管理 Modules 3、添加外部模块 设置好了之后,重启 Tomcat 就好啦!总结:这样可以在开发过程中,省掉 Eclipse 来检查项目的语法过程。参考资料:http://wenku.baidu.com/view/a330592e7375a417866f8f0f.html 阅读全文

posted @ 2013-03-25 10:57 Livon 阅读(255) 评论(0) 推荐(0)

Struts2 操练宝典 ( 入门 实战 笔记 教程 )
摘要:Eclipse:Juno文件结构:注意上图中的 9 个 jar 包。全部可以在 struts-2.3.9-lib.zip 中找到。所有 jar 包截图:Struts 下载地址:http://people.apache.org/builds/struts/2.3.9/WebContent/WEB-INF/web.xml 内容: 1 <web-app id="WebApp_9" version="2.4" 2 xmlns="http://java.sun.com/xml/ns/j2ee" 3 xmlns:xsi="http 阅读全文

posted @ 2013-03-22 11:43 Livon 阅读(363) 评论(0) 推荐(0)

导航