JFinal 1.1.0 has been optimized, some small practical functions have been added, and some additional functions have been removed. Other changes are as follows:
1: Add com. jfinal. plugin. activerecord. tx. TxByRegex and TxByActionKeys. They support regular declarative transactions and actionKeys declarative transactions respectively.
2: Improve ActionReporter, narrow the link range, and Interceptor output formatting to improve the development experience.
3: C3p0Plugin. start () Change return fal
://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-4.1.xsd ">On the inside first configure the DataSource and Sqlsessionfactorybean configuration as follows:Then write a test class to test whether the sqlsessionfactory can be loadedThe main code is as follows:public class Testsqlsessionfactory {@Testpublic void Test1 () {ApplicationContext AC =New Classpathxmlapplicationcontext ("Applicationcontext.xml");System.out.println (Ac.getbean ("SSF"));}}Error p
Sun is working to establish standards for RESt-style Web services. The specifications are as follows:JSRs: Java Specification RequestsJSR 311: JAX-RS: The JavaTMAPI for RESTful Web ServicesLink: http://jcp.org/en/jsr/detail? Id = 311At the same time, the reference implementation of this specification, Jersery, is gradually becoming more mature. It is now Version
a powerful idea and one of the areas that many Web developers are eager to explore. The most important thing to know about WEB applications and telephony applications is that you can actually use the same combination of technologies to create both applications. HTML, XHTML, and XML are the three underlying technologies that are most commonly used under the Web i
Struts2+ibatis+json realization of Fast Java web2.0 program development
With Struts2 basically finished a company project, the program is always summed up after the development, the previous scheme is STRUTS2+SPRING+DWR these three kinds of framework of the combination of the database operation of the spring in the JdbcTemplate, Always to hibernate do not like, previously in Hibernate 2 when using it total
Doing web development and discovering that object management through spring has complicated the test. Because all the beans need to be loaded in the Applicationcontext.xml, and then through the @resource to obtain. It is inefficient and cumbersome to test the entire business flow every time it is done. It's too tedious to write a test class alone. So I think spring has a test framework that can integrate ju
SSH and SSM definitions
SSH is usually referred to as the STRUTS2 Controller (Controller), spring manages the components of each layer, and the hibernate is responsible for the persistence layer.
The SSM refers to the SPRINGMVC Controller (Controller), Spring manages the components of each layer, and the mybatis is responsible for the persistence layer.
Common Ground: 1. Spring relies on injecting di to manage the components of each layer. 2. Use AOP to manage things, journals, permissions, et
The structs can be automatically encapsulated for parameters, which is also simple.One, the action parameter is automatically encapsulated:1, you can declare properties of public, accept parameters directly in the action class.2, the attribute is also private, if it is private, you need to provide a setter method, you can also provide getter method as needed.3,struts can automatically convert types, typically we pass string-type arguments, and struts can be converted to the default declared vari
First, create a form page Second, create an action that accepts the file to process the uploaded filepublic class FileUpload extends Actionsupport {private static final long Serialversionuid = 1l;/* uploaded files, names of properties and name of form form Consistent */public file uploadobject;/* gets the name of the uploaded file, the name format is file name (above) + "FileName" */public String uploadobjectfilename;/* The type name of the file, named format file name (above) + "ContentType" *
cannot use final Class).
* 1, usually recommended Proxytargetclass = False, which means that this method must be in the interface, and the method call in this class tag is invalid, must be called outside to be valid.
* 2, if we want to use in a non-interface other public method, we need to use Cglib Proxy, that is, Proxytargetclass = True,cglib Proxy is the disadvantage of the constructor is called two times. *➤ADVICEMODE.ASPECTJ is load-time weaving enabled, that is, when load, modify the co
, the code is similar, just map to different objects, the following describes the common code. generic interface definition: Genericrepository I is the type of index, E is the type of entity.
@Validated public
Interface GenericrepositoryAccordingly, the warehouse interface can be written as:
Public interface Bookrepository extends Genericrepository
get Types I and e:genericbaserepository we need to get the correct long,book type from Bookrepository
/* Here is a general approach, we do not spec
safely close the data source when the war shuts down.
public class C3p0utils {private static final Logger Logger = Logmanager.getlogger ();
private static final mapIn the context configuration:
@Bean public
DataSource Springjpadatasource () throws exception{return
c3p0utils.open ("Learntest", "JDBC: Mysql://192.168.1.2:3306/test "," Test "," test123456 ", 2, 2);
set the isolation level of the C3P0If you use C3P0, it's a little more complicated. The default for C3P0 may be none, or r
throwing exception;1.00/3.00
D.It is necessary to declare the matching pattern of the package of the class in which the function resides;1.00/3.00
AOP Technology JobsHttp://zhanjingbo.site/14759932535473.html1 (12 points)Complete a basic application, provide a number of service (>=2), each service provides basic additions and deletions of the interface (implementation of arbitrary, such as output a line of information), Through AOP, all service interfaces are guaranteed to return after
Import socketdef handle_request (client): data = CLIENT.RECV (1024x768) client.send ("http/1.1 + ok\r\n\r\n") client.send (" #coding =utf-8from wsgiref.simple_server Import make_serverdef runserver (data,start_response): # It contains all the data sent by the customer #start_response encapsulates the data to be returned to the user (response header, status, etc.) print data start_response (' $ Ok ', [(" Content-type "," text/html ")]) #返回的内容 return ' The nature of
extension.
7. No need to mention WebApp.
If you don't want to write more, download the source code!
Since only 10 MB of attachments can be uploaded at a time, I compress them into five compressed files. After downloading these five compressed files together, decompress one of them!
Http://files.cnblogs.com/zpc870921/EFMvcFrameApp.part05.rar
Http://files.cnblogs.com/zpc870921/EFMvcFrameApp.part04.rar
Http://files.cnblogs.com/zpc870921/EFMvcFrameApp.part03.rar
Http://files.cnblogs.com/zpc870921/
Before using Django to do a small site, the feeling that Django is too cumbersome, so ready to change a more lightweight Web framework to play. web.py author has been hung up, the project has not been updated for a long time, so not ready to use it. And flask is also a mature lightweight Web framework, with many Star a
before using Django to make a small site, feel Django is too cumbersome, so ready to switch to a more lightweight Web framework to play. web.py author has been hung up, the project has not been updated for a long time, so not ready to use it. And Flask is also a mature lightweight Web framework with many Star and Fork
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:
[email protected]
and provide relevant evidence. A staff member will contact you within 5 working days.