This article mainly explains how to merge data tables and display them across rows and columns through the ftl template language No more nonsense, let’s get straight to the code 1. Data description: 1. There will be multiple testing rooms 2. Each testing room has multiple testing areas 3. Each area has multiple detection points […]
Tag: marker
Spring Boo+Shiro+FreeMarker
Spring Boot is a framework for quickly building web applications, Shiro is a powerful security framework, and Freemarker is a template engine that helps you build high-quality web applications easily. This article will introduce in detail how to integrate Shiro and Freemarker in Spring Boot and provide complete code examples. Step 1: Create a Spring […]
Using Freemarker fill template to export complex Excel is actually very simple!
Article directory 1. Need analysis 2. Object generation 3. List interpolation 4. Save xml + format 5. ftl modification 6. Program conversion 7. Mistakes made 8. Summary 1. Requirements analysis A form like this We need to query the corresponding data from the database, summarize it into the table, and may also need to copy […]
Spring 4 uses Freemarker template to send emails & add attachments
Foreword Spring provides good support for Java email sending and provides a super simple API, which greatly simplifies the development of Java email sending function. Spring’s support for Email is developed based on the JavaMail API. Therefore, when we use Spring to develop the Java email sending function, we need to introduce javax.mail-api and its […]
Record has Long.MIN_VALUE timestamp (= no timestamp marker). Is the time characteristic set to ‘Proc…
question: Caused by: java.lang.RuntimeException: Record has Long.MIN_VALUE timestamp (= no timestamp marker). Is the time characteristic set to ‘ProcessingTime’, or did you forget to call ‘DataStream.assignTimestampsAndWatermarks(…) ‘? Exception in thread “main” org.apache.flink.runtime.client.JobExecutionException: Job execution failed. at org.apache.flink.runtime.jobmaster.JobResult.toJobExecutionResult(JobResult.java:144) at org.apache.flink.runtime.minicluster.MiniClusterJobClient.lambda$getJobExecutionResult$3(MiniClusterJobClient.java:137) at java.util.concurrent.CompletableFuture.uniApply(CompletableFuture.java:602) at java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:577) at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:474) at java.util.concurrent.CompletableFuture.complete(CompletableFuture.java:1962) at org.apache.flink.runtime.rpc.akka.AkkaInvocationHandler.lambda$invokeRpc$0(AkkaInvocationHandler.java:237) at java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:760) at java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:736) at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:474) […]
springboot uses freemarker to export word
springboot uses freemarker to export word 1. Requirements Description 2. Make template files 1. Modify word to leave placeholders and save as .xml file 2. Change the xml file suffix to .ftl 3. Open the ftl file format content 4. Replace placeholders with variables 3. Code implementation 1.Introduce dependencies 2.Introduce the template into resource 3. […]
Mybatis dynamic language – mybatis-freemarker
Earlier we introduced the use of Mybatis dynamic SQL; in this article we introduce the use of mybatis-freemarker dynamic language to generate dynamic SQL. If you don’t know much about Mybatis dynamic SQL, it is recommended that you understand it first before reading this article. You can refer to: Mybatis dynamic SQL – use if, […]
Use freemarker to export complex word templates
Requirements It is necessary to export the data of a report into a word. There are fixed items in the report, and n forms need to be dynamically generated. A simple example would be something like this. At first, I wanted to use easy-poi to export it to a word template, but found that it […]
Freemarker and aspose export word and pdf files – single export and loop export
Freemarker and aspose export word and pdf files – single export and loop export Guide package <!–UtilsWord to PDF–> <dependency> <groupId>aspose.words</groupId> <artifactId>aspose-words</artifactId> <version>15.8.0</version> </dependency> <!– freemarker jar –> <dependency> <groupId>org.freemarker</groupId> <artifactId>freemarker</artifactId> <version>2.3.28</version> </dependency> <dependency> <groupId>org.docx4j</groupId> <artifactId>docx4j-export-fo</artifactId> <version>8.1.1</version> </dependency> Make word template – single export Loop export Save the xml format, change the suffix on the […]
Convert doc document to freemarker to fill in text, use itext to convert to pdf
Pre-file processing Save the doc document as ${}. Save as xml format file Rename ftl file Format the data after opening. To change the data and add the default value ${name!’} is to add !’ after it, which means the default is an empty string. list loop data, add a layer outside the w:tr tag […]