This article from the "Knowledge Forest"Read the core configuration fileThe core configuration file refers to the resources root directory application.properties or application.yml configuration file, read the two configuration files in two ways,
The concept of SPRINGMVCis a web-layer framework, essentially a huge servlet;All requests are sent to Springmvc, the servlet: @WebServlet ("/");All the corresponding are SPRINGMVC issued;SPRINGMVC distribute the request to the corresponding Java
To understand the spring-boot of this technique, you should know Spring-boot's core profile application.properties, and of course you can customize the profile **.properties information through annotations.
I. Reading the contents of the core
The SSM integration configuration step under Maven
Prior to this, most of the projects are using the SSH framework, the previous years, the existence of struts fatal bug,hibernate package depth, less than mybatis inefficiency, now SSH seems to be
Hibernatede one-to-multiple ing configuration, hibernatede ing
HibernatedeOne-to-multiple ing Configuration
Take the company and its employees as an example: the company is one with many employees
Step 1Create two entity classes, company and
Hibernatede one -to-many mapping configurationTake the company and employees as an example: The company is one, employees are moreThe first step Create two entity classes, companies and employees Write core configuration file Hibernate.cfg.xml Write
First, create a spring projectProject Name: spring101310Ii. adding a jar package to the project1. Create a Lib directory in your project/lib2. Add spring support under the Lib directoryCom.springsource.com.mchange.v2.c3p0-0.9.1.2.jarCom.springsource.
1. Guide Package
Hibernate Development Package
the driver package for the database
2. Core configuration Files Core configuration file (assigned to SRC)1. Core Configuration Files for Hibernate :
Batch import data to Elasticsearch Based on Spring Batch, batchelasticsearch
1. Introduction
When the system imports a large amount of data from the database to Elasticsearch, using Spring Batch can improve the import efficiency. Spring Batch uses
Struts2 Framework Study Notes 2: detailed configuration, struts2 Study Notes
Core configuration file:
/hello. jsp
Introduce other configuration files:
Relative Path under src
Constant Configuration:
There is a default properties
MyBatis Framework---Persistence layer Framework-->object "objects" relation[relational database]mapping[in MyBatis which mapping file China tags] Framework For the encapsulation of JDBC, a custom SQL statement is required. Dealing with
Nginx compilation and Installation Method
Visit the http://nginx.org/en/download.html site to download the corresponding software version, download and unzip the file.
Development Environment required before compilation and Installation
# Yum-y
First, Struts21.1, the concept of Struts2STRUTS2 is a framework for developing MVC applications that provides solutions to some common problems in the development of Web applications:Verify the legitimacy of input data from the user;? --Unified
Common Configuration for Hibernate:
1, the core configuration, there are two ways to configure
Configure with the properties file:
-hibernate.cfg.xml
Format: Key=value
Note: The mapping file (database table-entity Class) cannot be loaded in the
1. Create a struts WEB ProjectProject name: struts21014072. Add struts2 support to the ProjectCommons-fileupload-1.3.jarCommons-io-2.0.1.jarCommons-lang3-3.1.jarFreemarker-2.3.19.jarJavassist-3.11.0.GA.jarOgnl-3.0.6.jarStruts2-core-2.3.15.1.jarXwork-
Object-Relational mapping (Object/relation Mapping, or ORM), which arises from the development of object-oriented software development methods, is a technique to solve the phenomenon of non-matching between object-oriented and relational database.
Basic knowledge of running Solr in Eclipse, eclipsesolrI am still a newbie in Solr. Writing these articles only record my experiences with Solr in recent years.What is Solr?Recently, when I was studying Solr, I have seen a sentence that Solr is an
First step : Find the jar package AOP3, upload a file 2,Spring relies on commons-logging1, date conversion Tool class 1, Connection pool 1, JSON data processing 3,jstl expression 2,log4j, Mybatis Core Pack 2, database connection
This time, let's take a look at the integrated applications of the three frameworks Struts2 + Spring + Hibernate, mainly the integration of Spring and Hibernate, because the front has already integrated Strtus2 + Spring.
Let's take a look at the
public class Studenttest {Session session=null; Transaction Transaction=null; Execute the Before @Before public void before () {/** * 01) before executing the test method. Reads the core configuration file under the SRC root directory!
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.