惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Microsoft Security Blog
Microsoft Security Blog
P
Proofpoint News Feed
C
CXSECURITY Database RSS Feed - CXSecurity.com
博客园 - 叶小钗
MongoDB | Blog
MongoDB | Blog
F
Full Disclosure
Martin Fowler
Martin Fowler
G
Google Developers Blog
F
Fortinet All Blogs
IT之家
IT之家
Blog — PlanetScale
Blog — PlanetScale
阮一峰的网络日志
阮一峰的网络日志
博客园 - 三生石上(FineUI控件)
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Google DeepMind News
Google DeepMind News
Google Online Security Blog
Google Online Security Blog
Hacker News: Ask HN
Hacker News: Ask HN
T
Tailwind CSS Blog
Cloudbric
Cloudbric
U
Unit 42
MyScale Blog
MyScale Blog
TaoSecurity Blog
TaoSecurity Blog
T
The Blog of Author Tim Ferriss
博客园 - 司徒正美
博客园 - Franky
AI
AI
爱范儿
爱范儿
L
LangChain Blog
小众软件
小众软件
D
DataBreaches.Net
M
MIT News - Artificial intelligence
GbyAI
GbyAI
Y
Y Combinator Blog
有赞技术团队
有赞技术团队
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
The Cloudflare Blog
Help Net Security
Help Net Security
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
P
Privacy International News Feed
H
Hackread – Cybersecurity News, Data Breaches, AI and More
D
Docker
A
About on SuperTechFans
Scott Helme
Scott Helme
The GitHub Blog
The GitHub Blog
V
V2EX
N
Netflix TechBlog - Medium
S
Security Affairs
Security Archives - TechRepublic
Security Archives - TechRepublic
H
Heimdal Security Blog
WordPress大学
WordPress大学

博客园 - Fei飞

关于下划线的有无,和超链接的颜色变化 Action里跳转到错误页的另一种方法(struts1.2) - Fei飞 - 博客园 java获取本机IP - Fei飞 - 博客园 jdk环境变量 Tomcat虚拟路径 - Fei飞 - 博客园 杨辉三角的画法(c语言) - Fei飞 - 博客园 js表单验证控制代码大全 颜色编码表 mysql中文配置 js实现按钮控制加减 Could not execute JDBC batch update C的错误分析 用js获取select所选的值 struts中,防止F5刷新,造成重复投票方法 我是大海里的一页扁舟 类型转换和页面获取值(总爱忘的) JDBCTM中Statement接口提供的execute、executeQuery和executeUpdate之间的区别 html标签大全 struts标签库
完成SSh构架的搭建
Fei飞 · 2008-04-13 · via 博客园 - Fei飞

预备文件
终于能搭建SSH了,简单说一下简略过程

搭建SSH过程(实现简单添加):
1.新建一个web工程:叫做wcg_ssh
2.加入Struts框架,包名叫com.ff.struts
3.加入Spring框架,选前4个打上对勾,另外加上Spring 2.0 web Libraries
下面选择copy,Next,建立一个新路径
WebRoot/WEB-INF/spring/applicationContext.xml,Finish
4.加入hibernate框架,选copy,Next,选Spring configuration,Next,选择
exist spring,SesstionFactory ID 后写 SesstionFactory,Next,Bean ID写
DataSourse,加入mysql数据库,Next,去掉对勾(不创建hibernate工厂),Finish
5.映射表,映射表到com.ff.vo,Name.java和Name.hbm.xml.
6.修改web.xml,加入一个东东来指定spring路径:
  <context-param>
    <param-name>contextConfigLocation</param-name>
    <param-value>/WEB-INF/spring/applicationContext.xml</param-value>
  </context-param>
另外加入:
<servlet>
 <servlet-name>context</servlet-name>
    <servlet-

class>org.springframework.web.context.ContextLoaderServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
  </servlet>
7.将commons-pool.jar和spring-web.jar拷到bin下(在预备文件里)
8.然后加入serverce,basedao和com.lms.util的类包,com.lms.name.dao,

com.lms.name.dao.impl,com.lms.name.service,com.lms.name.service.impl(在

预备文件里)
9.修改Spring文件:(在预备文件里)
10.加struts,action,from:建立一个form就一个姓名文本框,name="name".
com.ff.struts.action考(在预备文件里)
11.运行