- 博客(12)
- 资源 (1)
- 收藏
- 关注
翻译 eclipse debug常见调试 F6 单步 F8完成 F5进入方法
eclipse debug常见调试 F6 单步 F8完成 F5进入方法eclipse 里debug调试主要三个快捷方式 F6 单步执行 执行到下一行代码F8是执行完 假如后面还有断点 执行到下一个断点处F5是进入方法里执行...
2018-05-22 11:10:47 1755
翻译 Struts2 第四讲
public class UserAction3 extends ActionSupport implements ModelDriven<User>{ /** * */ private static final long serialVersionUID = 1L; private UserService userService=new UserService(...
2018-05-18 20:15:36 82
翻译 Struts2 第三讲
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dt
2018-05-18 20:13:10 92
翻译 Struts2 第二讲
public class User { private String userName; private String password; public String getUserName() { return userName; } public void setUserName(String userName) { this.userName = userName;...
2018-05-18 20:10:08 86
翻译 Struts2 第一讲
public class HelloWorldAction implements Action{ @Override public String execute() throws Exception { System.out.println("执行了Action的默认方法"); return SUCCESS; }}helloWorld.jsp<%@ page lang...
2018-05-18 19:58:50 74
转载 Spring4 单例模式和多例模式
在Spring中,bean可以被定义为两种模式:prototype(多例)和singleton(单例)singleton(单例):只有一个共享的实例存在,所有对这个bean的请求都会返回这个唯一的实例。prototype(多例):对这个bean的每次请求都会创建一个新的bean实例,类似于new。Spring bean 默认是单例模式。<bean id="hi" class="com.tes...
2018-05-17 10:50:47 272
翻译 Spring4 第四讲
public class Dog { private String name; public String getName() { return name; } public void setName(String name) { this.name = name; } }public class People { private int id; privat...
2018-05-17 10:20:02 108
翻译 Spring4 第三讲
public class People { private int id; private String name; private int age; public People() { super(); // TODO Auto-generated constructor stub } public People(int id, String n...
2018-05-17 10:07:07 136
翻译 Spring4 第二讲
public interface Tester { public void test();}public class ZhangSan implements Tester{ public void test(){ System.out.println("张三-测试"); }}public class Lisi implements Tester{ public void te...
2018-05-17 09:55:36 74
原创 Spring4 HelloWorld入门
public class HelloWorld { public void say(){ System.out.println("Spring Hello World!"); }}public class Test { public static void main(String[] args) { ApplicationContext ac=new ClassPathXml...
2018-05-17 09:41:24 186
原创 javaweb文件下载
String filepath = this.getServletContext().getRealPath("/WEB-INF/upload"); JSONObject jsonObject=new JSONObject(); JSONArray jsonArray=new JSONArray(); Map<String,String> map=new HashMap&l...
2018-05-17 09:28:26 311
原创 JSP文件上传
DiskFileItemFactory factory=new DiskFileItemFactory(); ServletFileUpload upload=new ServletFileUpload(factory); JSONObject jsonObject=new JSONObject(); try { upload.setHeaderEncoding("UTF-8"...
2018-05-17 09:21:48 119
JAVA .API_中文版 帮助文档.CHM
2017-09-23
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人