Spring
文章平均质量分 78
工人
一个渴望进步的代码青年!
展开
-
Spring 输入国际化
配置文件:messages_en_US.properties:LoginPage.locale=USALoginPage.name=User NameLoginPage.password=PasswordLoginPage.sex=sexLoginPage.age=ageLoginPage.login=LoginLoginPage.reset=Reset原创 2012-11-28 11:27:39 · 487 阅读 · 0 评论 -
Spring 单独完成数据输入
GoodsInfo.java:package com.lh.bean;public class GoodsInfo { private int id; private String name; private float price; private String type; public int getId() { return id; } publ原创 2012-11-28 13:50:36 · 593 阅读 · 0 评论 -
spring + hibernate批量加入
applicationContext.xml:<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/sch原创 2012-11-28 14:53:36 · 2752 阅读 · 1 评论 -
spring + hibernate 添加用户
Employee.java:package com.lh.bean;public class Employee { private int id; private String name; private String sex; private int age; private String dept; private String duty; privat原创 2012-11-28 14:22:11 · 1380 阅读 · 0 评论 -
spring 整合Spring和Hibernate操作商品库存表
web.xml:<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.原创 2012-11-28 19:27:58 · 1635 阅读 · 0 评论 -
Spring MVC 表单控制器实现验证用户登录验证
web.xml:<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.原创 2012-11-28 20:36:28 · 26271 阅读 · 3 评论 -
spring MVC 参数映射JSP页面
定义视图分解器 --> class="org.springframework.web.servlet.view.InternalResourceViewResolver"> org.springframework.web.servlet.view.InternalResourceView WEB-INF/jsp/" /> jsp" /原创 2012-11-28 20:50:55 · 17862 阅读 · 0 评论 -
spring MVC 多动作控制器操控数据查询和删除操作
web.xml:<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://原创 2012-11-28 23:48:52 · 5556 阅读 · 0 评论 -
spring MVC 员工通讯录
web.xml:<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.原创 2012-11-29 10:08:35 · 3531 阅读 · 2 评论