java generates PDF dynamically according to template

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

Spring MVC Components and Configuration Details

Upload file parser MultipartResolver 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

Android Template Making

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

Spring Boot Series (V) web Development - Thymeleaf, FreeMarker Template Engine

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

@ Controller Advice intercepts exceptions and handles them uniformly

In spring 3.2, the @Controller Advice annotation was added, which can be used to define @ExceptionHandler, @InitBinder, @ModelAttribute, and applied to all @RequestMapping. I. Introduction Create MyController Advice and add the @Controller Advice annotation. package com.sam.demo.controller; import org.springframework.ui.Model; import or ...

Posted on Sat, 02 Feb 2019 02:09:17 -0800 by BSkopnik

On freemarker Static Generation of html Page Scrambling

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