Skip to content

Commit b9de709

Browse files
committed
Whitelist Thymeleaf.
1 parent 63d50b4 commit b9de709

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

3-reactive/src/main/java/com/greglturnquist/hackingspringboot/reactive/HackingSpringBootApplicationBlockHoundCustomized.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package com.greglturnquist.hackingspringboot.reactive;
22

3+
import org.thymeleaf.TemplateEngine;
34
import reactor.blockhound.BlockHound;
45

56
import org.springframework.boot.SpringApplication;
@@ -15,7 +16,7 @@ public class HackingSpringBootApplicationBlockHoundCustomized {
1516
public static void main(String[] args) {
1617
BlockHound.builder() // <1>
1718
.allowBlockingCallsInside( //
18-
JdkIdGenerator.class.getCanonicalName(), "generateId") // <2>
19+
TemplateEngine.class.getCanonicalName(), "process") // <2>
1920
.install(); // <3>
2021

2122
SpringApplication.run(HackingSpringBootApplicationBlockHoundCustomized.class, args);

0 commit comments

Comments
 (0)