appears.
Spring completely decouples the dependencies between classes. If a class depends on anything, it is an interface. It is not important to implement this interface. As long as you get a class that implements this interface, you can easily inject the implementation class into the class that calls the interface through the xml configuration file. This dependency between all classes is completely replaced by the configuration file. Therefore, the core of the Spring
From: http://jingyan.baidu.com/article/a378c960a78125b3282830cc.htmlMyEclipse8.5 Quick Build SSH frameworkUse version:struts2.1+spring3.0+hibernate3.3Method/Step
11. Create a new web Project in MyEclipse
22. Named SSH, the version of the Java EE select JavaEE5.0
33. This is because my JDK version is 1.6, select Yes directly
44. Create a new web Project after completion
55. Integrate
Http://www.cnblogs.com/younes/archive/2011/12/21/2295759.htmlUsing MyEclipse to build the SSH framework Struts Spring Hibernate1. New a Web project.2. Right-click the project to add struts support for the project.Click Finish. The SRC directory has more struts.xml configuration files.3. Use MyEclipse Database Explorer to establish a data source.---------------------to add someone else's article yourself----
database connection parameters JDBC
The MYSQL configuration is as follows:
Connect Url:jdbc:mysql://localhost:3306/system
Driver Class:com.mysql.jdbc.Driver
Username:root
Password:root
Dialect:mysql
Next, the Create sessionfactory class option is canceled and the final finish
Finally, let's add Struts2.
Or right click on the project name to select myeclipse = Add Struts capabilites ...
We chose struts with a version of 2.1 filter name default to Struts2 intercept URL pattern selection/* Fil
business logic, easy to maintain. An integrated tag library that provides exception handling mechanisms and database connection pool management.Then there is the understanding of Hibernate . Hibernate is a lightweight open-source persistence layer framework, hibernate on the original three-tier structure, from the business logic layer separated from the persistence layer, specifically responsible for data
has been used in the development of the servlet, but very cumbersome, inefficient, the framework was only known, but has not been how to use, just the new year is not how busy, the afternoon to check the data obstinately toss a. Feel that there is some harvest, and then recorded.1. Create a new Web project in MyEclipse.Fill in the project name, specification level Java EE 6.0Select Yes in the warning dialog box that pops up2, modify the project's JDK
instances (only one required)2, declarative transaction managementThis configures a bean, which is equivalent to invoking its default construction method through reflection, and then specifying the property, which is equivalent to invoking the object's Seter method to inject the attribute into it.--------------------------------------------------------------------------------------------------------------- --------------------------------------------4. Resource classification:5. Configure the l
: Create the package Com.itheima.crm.domain Step three : Select the MyEclipse DataBase Explorer view Step four : Right-click New database Connection (new) Step five : Create new Connection Details Step Six : Select all the tables and use Hibernate to reverse the engine Step Seven : Configure the Reverse engine 1 Step Eight : Determine the primary key generation strategy Step Nine: Copy the PO class and the mapping file, and then modify the content accordingly.4.7 Spring Configuration Lo
Library If you use "cglib" it is necessaryIf you want to use the cache to join: Ehcache.jar Ehcache CacheConnect to the database to join the related package ....SpringSpring-beans.jar access to configuration files, creation and management of beans, and all classes related to inversion of control/dependency injection (IOC/DI) operationsSpring-context.jar can find all the classes required to use the Spring ApplicationContext feature, Jdni all classes r
I have been writing this framework the other day and now I am releasing the source code!
Main functions:
1. Automatically encapsulate the form into an object (similar to struts2)
2. automatically generate addition, deletion, modification, and query SQL statements based on the object (similar to hibernate)
3. Support spring dynamic injection. You can hand over custom actions to spring for management.
4. Custom tab
Label: Style Color Io use Java ar file data Div SSH2---- Struts2.1.8 ----Struts2-core-2.1.8.1.jar struts2 core packageJSON plugin for struts2-json-plugin-2.1.8.1.jar struts2 -- var S = {name: "Zhangs", age: "18 "}Struts2-spring-plugin-2.1.8.1.jar and spring integration plug-inXwork-core-2.1.6.jar struts2 build base jarAnnotation information for struts2-convention-plugin-2.1.8.1.jar struts2 -- use annotation instead of XML file configurationCommons-io-1.3.2.jar universal input output packageCommo
1. New a Web project.2. Right-click the project to add struts support for the project.Click Finish. The SRC directory has more struts.xml configuration files.3, use MyEclipse Database Explorer to establish a data source. new a data source. Fill in the data source information. Click Test Driver, if successful display: Click OK, click Finish. 4, add spring support for the project. The selects five packages, after which the jar Library installation as
Original http://www.cnblogs.com/AXDY-QIN/archive/2013/01/21/SSH.html
Use myeclipse to build the SSH framework struts2.1 + spring3.0 + hibernate3.3
1. Configure Tomcat
Configure the Tomcat path
Configure tomcat to use JDK
Add a Tomcat-juli.jar package if Tomcat is 7.0
2. A new web project.
2. Right-click the project and add struts support for the project.
Click Finish. The S
To develop a custom label step:
To develop a custom processing class:
Inheriting the Javax.servlet.jsp.tagext.SimpleTagSupport class
If there are attributes, each attribute must implement the Getter,setter method
Overriding the Dotag method
To Create a TLD file:
The file is placed in the Web-inf directory
Definitions
Definitions Tag> name>Label Signaturename> Tag-class>Label Processing classTag-class> body-content>Label bodybody-conte
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.