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

推荐订阅源

W
WeLiveSecurity
T
Tenable Blog
Project Zero
Project Zero
C
Cybersecurity and Infrastructure Security Agency CISA
T
The Exploit Database - CXSecurity.com
P
Palo Alto Networks Blog
S
Schneier on Security
Scott Helme
Scott Helme
S
Securelist
Know Your Adversary
Know Your Adversary
Vercel News
Vercel News
IT之家
IT之家
V
V2EX
F
Fortinet All Blogs
Simon Willison's Weblog
Simon Willison's Weblog
K
Kaspersky official blog
博客园_首页
T
Tailwind CSS Blog
The GitHub Blog
The GitHub Blog
Spread Privacy
Spread Privacy
Microsoft Security Blog
Microsoft Security Blog
Cisco Talos Blog
Cisco Talos Blog
The Register - Security
The Register - Security
有赞技术团队
有赞技术团队
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Cyberwarzone
Cyberwarzone
Google DeepMind News
Google DeepMind News
The Hacker News
The Hacker News
L
LINUX DO - 热门话题
Hugging Face - Blog
Hugging Face - Blog
博客园 - 三生石上(FineUI控件)
A
Arctic Wolf
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
C
CXSECURITY Database RSS Feed - CXSecurity.com
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
T
Threat Research - Cisco Blogs
P
Proofpoint News Feed
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
P
Privacy & Cybersecurity Law Blog
D
Darknet – Hacking Tools, Hacker News & Cyber Security
C
CERT Recently Published Vulnerability Notes
S
SegmentFault 最新的问题
AWS News Blog
AWS News Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
罗磊的独立博客
Apple Machine Learning Research
Apple Machine Learning Research
P
Proofpoint News Feed
The Cloudflare Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
V
Vulnerabilities – Threatpost

博客园 - 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.运行