1. Requirement description: According to business needs, dynamic configurable PDF documents need to be generated on the server side to facilitate data visualization.
II. Solutions:iText+FreeMarker+JFreeChart Generates Dynamic Configurable PDF DocumentsiText has a powerful PDF processing capability, but the style and typesetting are not well con ...
Posted on Sat, 06 Jul 2019 17:15:38 -0700 by jayrulez
Upload file parser
When loading the component, look for a Bean named multipartResolver of type MultipartResolver. As a component of this type.
The component is not implemented by default and needs user display definition. Otherwise, there will be no component in the dispatcher servlet.
Configuring this component should ...
Posted on Sat, 13 Apr 2019 20:45:32 -0700 by mewright
This paper introduces the knowledge of template and how to make Android template and use it in detail, so as to reduce unnecessary repetitive work. For example, if I want to create a new module in my work, I don't need to create MVP related classes: Model, View, Presenter, Entity, etc.
This article is devoted to template-related knowledge, so t ...
Posted on Fri, 12 Apr 2019 02:15:31 -0700 by Skaara
The previous articles described how returning json data provides a good RESTful api, and now we show how to render the processed data onto the page.
Spring Boot uses a template engine
Spring Boot recommends template engines such as Thymeleaf, FreeMarker, Velocity, Groovy, Mustache, etc. JSP is not recommended.
Spring Boot provides a good defa ...
Posted on Mon, 11 Feb 2019 03:36:17 -0800 by pneudralics
In spring 3.2, the @Controller Advice annotation was added, which can be used to define @ExceptionHandler, @InitBinder, @ModelAttribute, and applied to all @RequestMapping.
Create MyController Advice and add the @Controller Advice annotation.
import or ...
Posted on Sat, 02 Feb 2019 02:09:17 -0800 by BSkopnik
When FreeMarker generates static pages, if the encoding is inconsistent, it will generate scrambling code. Especially when dealing with Chinese, if the same encoding is not specified, it will generate scrambling code in Chinese. Therefore, in the development, we should try to ensure that the encoding is consistent. The following ...
Posted on Mon, 28 Jan 2019 16:39:14 -0800 by leatherback