【★Update★] Sort out the code and tools (Java) provided in all my blog posts)

Source: Internet
Author: User

(Some of the content has been changed. Please edit it and release it again)

To facilitate the management of various types of blog postsCodeAnd tool resources. Now, these resources are migrated to Google Code. If you are interested, you can download them.

Java

1. [May Day Presentation] Java all-powerful and efficient MVC & rest development framework portal-Basic v3.1.1 officially released

Abstract:Portal-Basic is a complete set of high-performance full-stack web application development frameworks, built-in and scalable MVC Web infrastructure and DAO Database Access Components (the hibernate, mybatis, and JDBC Dao components are provided internally ), integrates basic web application components such as Action interception, form/Dao/spring bean assembly, internationalization, file upload/download, and page static, to provide an efficient and flexible pure JSP/servlet API programming model, perfectly integrated with spring, supports action convention, and can quickly develop traditional and restful applicationsProgramThe documents and examples are complete and easy to learn.

Resource:Please visit the project homepage ^ _*

 

2. Log cutting and cleaning tool implemented in Java (source code download)

Abstract: log cleaning is very important for routine maintenance of servers. If too many logs are left, disk space is seriously wasted and service performance is affected. Manual cleanup may take too much time and is difficult to meet actual requirements. For example, how do I cut a log file larger than 2 GB at every Saturday and keep the latest MB log records? No log cutting tool can meet the requirements of this seat on the Internet, so I spent some time writing one by myself. Because it needs to be used on multiple platforms, Java is used for convenience. This tool is namedLogcutterAnd has the following features:

      • Supports all common operating systems such as Linux, Mac, and windows.
      • Supports interactive command line running.
      • Supports non-interactive running in the background (daemon process implementation in Linux/Mac, and system service implementation in Windows)
      • Two log cleanup methods are supported (delete log files or cut log files)
      • Support for gb18030, UTF-8, UTF-16LE, UTF-16BE and other common log file types cut (not cut off half a character)
      • Highly configurable (program execution cycle, log file expiration time to be deleted, log file threshold to be cut, and retained size)

Http://ldcsaa.googlecode.com/files/LogCutter.zip Resources

 

3. Design and Implementation of General Java file upload and download Components

Abstract:File upload and download are a common feature in Web applications. I believe you have written code related to this aspect more or less. However, I have seen many people unconsciously tangle with the business logic of the program when implementing the upload or download function. Therefore, when these functions are used elsewhere, the copy/PASE operation is inevitable and then modified. This ugly practice makes it very easy to make mistakes. The bigger problem is that it is a serious waste of time to repeat similar work. This is absolutely intolerable. Ah, life is short. It is really not worth wasting time on repetitive work. Why don't you save the time to play a few Rome or play a ball? To this end, this book uses some leisure time to compile a general file upload and File Download component. The implementation method is purely Based on JSP, and there is no high technical difficulty. In short, it is recommended to be honest. I want to introduce the design ideas and implementation methods to you, and hope that they will inspire you to think creatively.

Resource: http://code.google.com/p/portal-basic/downloads/list (as part of portal-basic, code is in the com. Bruce. util. http package)

 

4. In-depth analysis: automatic assembly of Java pojo bean objects and web form forms

Abstract: Nowadays, many web frameworks have implemented the automatic assembly function of form fields and Java object attributes. This function is indeed very useful. If this function is not provided, requests will inevitably flow everywhere. call of the getparameter () series and type conversion methods. Duplicate code is large, error-prone, and not beautiful, affecting city appearance. The question is, how do these frameworks implement automatic assembly? How can we implement these frameworks without them? Especially for those pure JSP/servlet applications, it would be nice to have the automatic assembly function! I am well aware of your expectations and decided to introduce the principles and implementation methods of automatic assembly.

Resource: http://code.google.com/p/portal-basic/downloads/list (as part of portal-basic, code in the com. Bruce. util package)

Codeproject

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.