Skip to content

Instantly share code, notes, and snippets.

public class Test3 {
public static void main(String[] args) {
Formula<Formula> formula = a -> a.sqrt(100);
System.out.println(formula.calculate(new ImplFormula(100)));
}
}
@FunctionalInterface
interface Formula<T> {
spring.freemarker.expose-request-attributes=true
@ms-Shifu
ms-Shifu / pom.xml_Freemarker
Last active May 31, 2019 11:24
for pom.xml
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-freemarker</artifactId>
</dependency>