[SSH] A Preliminary Study of SSH

Background introduction

Two ways of Java EE development

A lightweight JavaEE enterprise development platform with Spring as the core, the SSH we learned belongs to this
feature : low development and deployment costs; use of a web server
Applicable scenarios: small and medium-sized enterprise applications Classic JavaEE development platform
write picture description here
with EJB3+JPA as the core
Features : It meets the requirements of high scalability and high stability, and the maintenance cost is high in the later period; using application server
Applicable scenarios: banking system, insurance system, etc.
write picture description here

What did you use before SSH?

write picture description here
It can be seen that the coupling is high. It is worth mentioning that both JSP and Servlet can act as presentation layer, but Servlet acting as presentation layer will make it difficult to maintain presentation layer pages, so JSP is now commonly used as presentation layer. However, the principle of using JSP is: the web server compiles it into a servlet, and then runs it on the web server.

ssh concept articles

SSH refers to three frameworks: Struts, Hibernate, Spring, an open source framework for web applications

effect

Struts: Handling request
information Alternative technologies that serve the same purpose: SpringMVC, JSF

Hibernate: Background JDBC database
connection Alternative technologies that work the same: MyBatis, TopLink, Apache

Spring: coordinating work between frameworks

mind Mapping

write picture description here

Tools needed for development

(1) Web server (after the website is built, deploy it to the server for users to access): Tomcat, Jetty, Resin
write picture description here
(2) Component tools (can realize automatic construction and deployment of projects, etc.): Ant, Maven, Gradle
write picture description here
(3) The rest include IDEs such as Eclipse, and SVN as a version control tool.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324588082&siteId=291194637
ssh