In-depth analysis of common Spring-boot-starter dependency modules,
Two major advantages of Spring-boot:
1. The "conventions over configuration (COC)" concept based on the Spring framework and the path to best practices.
2. automatically configure the dependency module for Spring-boot-starter in various daily enterprise application R D scenarios, and "out-of-the-box" (the spring-boot-starter-is specified as the naming prefix, all of which are located
② Follow the COC principle, Zero Configuration, no xml
③ ActiveRecord support, making database development extremely fast and convenient
④ Automatically load the modified java file. You do not need to restart the web server during development.
⑤ Support for AOP, flexible interceptor configuration, and easy to use
⑥ In architecture, convenient Extension
7. multi-view support: FreeMarker, JSP, and Velocity
⑧ Powerful Validator backend verification func
jfinal is based on Java the speed of language WEB + ORM Development Framework whose core design objective is to developFast, less code, learning simple, powerful, lightweight, easy to expand, Restful . In the owning Javawith all the advantages of the language. Ruby , python , PHP the development efficiency of such dynamic language ! jfinal has the following main features:L MVC Architecture, compact design, easy to useL Follow COC principle, 0 configu
, including dependencies between models.6. Session parameters, such as loginUserId, are also injected to the Controller through setter. If a request parameter is injected with loginUserId, it will also be overwritten by the Session parameter.7. One-to-one View and Controller are mapped by name and support various View template types, such as JSP, Velocity, FreeMarker, and CommonTemplate.8. View execution can be performed without a Controller, which is equivalent to implicit Controller.9. the fra
If spring struts hibernate/ibatis is too large, you can use some of the following lightweight frameworksJfinalhttp://www.jfinal.com/Brief introduction:Jfinal is a fast WEB + ORM framework based on the Java language, and its core design goals are rapid development, low code, simple learning, powerful, lightweight, easy to expand, Restful. With all the advantages of the Java language, we have the development efficiency of Ruby, Python, PHP and other dynamic languages.Jfinal has the following main
jodd is a Java Toolkit and mini-framework, and thejodd tool contains some useful tool classes and small frameworks that enhance the JDK 's many powerful features, can help achieve daily development tasks and make the code more reliable, while the jodd Framework is a lightweight application framework designed to follow CoC,DRY , and SCS principles to make development easier.jodd is divided into many modules, can be selected on demand, commonly used jod
start a one-stop solution3, springboot application start step BriefIv. Understanding the Spring-boot-starter1. The Springboot micro-framework affects the spring community's developers from two main levels:(1) The "Contract over configuration (COC)" concept based on the spring framework and the road to best practices;(2) Spring-boot-starter automatic configuration dependency module for everyday enterprise application development scenarios, so many "ou
default value is similar to one-to-one correlation. Column name: The subject's associated property name + underscore + The primary key column name of the associated end. In this case, company_id, because the associated property is company, and the primary key for the IS ID.· creator_id% attribute name%_ primary key column name (not CLS property name)· If the COC is not possible, set this annotation.·2. @targetEntityAnnotations· There is a Targetentit
1, Struts2 's predecessor is the Opensymphony Webwork2, actually strut and WEBWORK2 merged to form STRUTS2.2. A helloword example1) to create a Web application, the jar package required is: 2) configuration STRUTS2 is configured in the. xml file as follows:3) Create the control class HelloWorldPackage Com.yyq.action;import Com.opensymphony.xwork2.actionsupport;public Class HelloWorld extends Actionsupport { private String message; @Override public String execute () throws Exception {
. Controller uses getter feed data to view, in view can be directly taken to the corresponding property values, such as: ${property}.3. The controller handles the request with any non-setter and getter functions.4. Controller takes the function return value to control the jump, only allows to jump to another controller, does not allow a controller to correspond to two view.5. The controller's reliance on the model is automatically assembled by the setter, including the dependence between the mod
) |+------------------------------+| study.com |+------------------------------+
3.2 starts at the 4th character position of the string, and takes only 2 characters.
The code is as follows
Copy Code
mysql> Select substring (' 111cn.net ', 4, 2);+---------------------------------+| SUBSTRING (' 111cn.net ', 4, 2) |+---------------------------------+| St |+---------------------------------+
3.3 Starts at the 4th character position (countdown) of the
Use STRUTS2 for the first time, and honestly configure the URL mapping file for each action method.
Long time, difficult to feel cumbersome, why not use the COC way? Finally, I thought of using wildcard characters.
View Struts2 Docs and find the relevant configuration method:
Well, very convenient, but start jetty, found that satisfies the regular URL, is unable to find
/--incremental Specifying a backup type--incremental-basedir= Specifies which backup this incremental backup is based on, which is a full backup file, which consolidates the incremental backup data into a full backup4.7 Second IncrementTo modify the data firstCopy CodeThe code is as follows:Mysql> INSERT into students (Name,age,gender,classid,teacherid) VALUES (' Tom ', ' M ', ' 2,4 ');Innobackupex--user=root--password=mypass--incremental/innobackup/--incremental-basedir=/innobackup/2013-09-12_
on mainresult.product_no = Dw_coclbl_m02_3848.product_noCREATE TABLE ci_cuser_yymmddhhmisstttttt_tmp (product_no string) row format Serde ' Com.bizo.hive.serde.csv.CSVSerde ';LOAD DATA LOCAL inpath '/home/ocdc/coc/yuli/test123.csv ' OVERWRITE into TABLE test_yuli2;Create a testfile file that supports CSV formatCREATE TABLE test_yuli7 row format Serde ' Com.bizo.hive.serde.csv.CSVSerde ' as select * from ci_cuser_20150310162729786;Create a comma-delim
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.