Update the code and tools provided in all my posts (java,2014.09)

Source: Internet
Author: User

To make it easier to manage the various code and tool resources involved in the blog post, these resources are now migrated to GitHub, where interested people can go to download.

Java

1, "Efficient Java WEB application Development Framework Jessma v3.4.1 official release"

Abstract:Jessma is a fully functional, high-performance Full-stack Web application Development framework with a built-in extensible MVC Web infrastructure and DAO database Access Components (Hibernate, MyBatis and JDBC DAO components are provided internally), integrated Basic WEB application components such as Action interception, form/dao/spring Bean assembly, internationalization, file upload download, and page static, provide an efficient and flexible pure jsp/servlet API programming model that seamlessly integrates spring/guice to support With Action convention, you can quickly develop traditional style and RESTful style applications, with documentation and examples perfect and very easy to learn.

Resources: Please visit the Project homepage ^_*

2. "Log cutting Cleanup tool (source code download)" implemented in Java

Summary: Log cleanup is a very important thing for the daily maintenance of the server, and if there are too many residual logs, it can seriously waste disk space and affect the performance of the service. If you clean it by hand, it will take too much time, and many times it is difficult to meet the actual requirements. For example: How to cut more than 2G log files at every Saturday 3 o'clock in the morning and keep the latest 100M log records? No log cutting tools were found on the Internet to meet this requirement, so it took some leisure time to write one yourself. Because it is used on multiple platforms, it is easy to implement Java. This tool is named Logcutter, which has the following features:

    • Supports all common operating system platforms such as Linux, Mac, and Windows
    • Support for command line Interactive run
    • Support for background non-interactive running (Linux/mac using daemon process implementation, Windows with system Service implementation)
    • Supports three log cleanup methods (delete, cut, or archive log files)
    • Supports cutting of common log file types such as GB18030, UTF-8, Utf-16le, Utf-16be, and so on (no half-character cuts will occur)
    • Highly configurable (program execution cycle, log file expiration time to delete, log file thresholds to cut, and retention size) configurable

Resources:Https://github.com/ldcsaa/Log-Cutter

3. Design and implementation of common Java file upload and download components

Abstract: file Upload and download is a common function in WEB applications, I believe you have more or less written about this aspect of the relevant code. But this seat has seen a lot of people in the implementation of the upload or download function is always unwittingly intertwined with the business logic of the program, so when other places to use these features are inevitably copy/pase, and then modified. Such an ugly way of doing things makes it very easy to make mistakes. Not to say, the bigger problem is a serious waste of time repeating similar work, which is absolutely intolerable. Alas, life is short, wasting time in these repetitive work is not worth it, why not save the time to play Roma or play a ball? To this end, the use of some leisure time to write a common file upload and file download components, the implementation method is purely based on JSP, not too high technical difficulty, in short, young and old ^_^. Now the idea of design and the method of realization to everyone, hope to play a stimulating effect, inspire everyone's creative thinking.

Resources:Https://github.com/ldcsaa/JessMA(as part of Jessma, code in Org.jessma.util.http package Fileuploader and Filedownloader In

4. Depth Analysis: Automatic assembly of Java POJO Bean objects and Web form forms

Absrtact: Many WEB frameworks now implement the automatic assembly of form fields and Java object properties, which is really very useful, just imagine that without this feature there is a Request.getparameter () series of methods and the invocation of the type conversion method. Repeated code is large, error-prone, but also not beautiful, affecting the city appearance. The question now is, how do these frameworks implement automated assembly? How can we achieve this without these frameworks? Especially for those pure jsp/servlet applications, it would be nice to have an automatic assembly function! This seat is well aware of the expectations of all of you, decided to put the principle of automatic assembly and implementation methods to explain.

Resources:Https://github.com/ldcsaa/JessMA(as part of Jessma, code in Org.jessma.BeanHelper)

Update the code and tools provided in all my posts (java,2014.09)

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.