https://keyoxide.org/147e4ee9e433577071fa449ffe312b5e89512794
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.innoq.java17; | |
import java.util.ArrayList; | |
import java.util.List; | |
public class JugAugsburg { | |
// Switch Expressions | |
static void switchExpressions() { | |
int i = 3; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Config { | |
public static void main(String[] args) { | |
Map<String, Object> beans = new HashMap<>(); | |
Enhancer enhancer = new Enhancer(); | |
enhancer.setSuperclass(Config.class); | |
enhancer.setCallback((MethodInterceptor) (obj, method, arguments, proxy) -> { | |
String name = method.getName(); | |
if (!beans.containsKey(name)) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/Development/new/spring-hateoas-server $ http -p Hhb :8080/users Accept:application/hal+json | |
GET /users HTTP/1.1 | |
Accept: application/hal+json | |
Accept-Encoding: gzip, deflate | |
Connection: keep-alive | |
Host: localhost:8080 | |
User-Agent: HTTPie/0.9.8 | |
HTTP/1.1 200 | |
Content-Type: application/hal+json;charset=UTF-8 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.springframework.boot.SpringApplication; | |
import org.springframework.boot.autoconfigure.SpringBootApplication; | |
import org.springframework.stereotype.Controller; | |
import org.springframework.ui.Model; | |
import org.springframework.web.bind.annotation.*; | |
import org.springframework.web.servlet.mvc.method.annotation.MvcUriComponentsBuilder; | |
@SpringBootApplication | |
@Controller | |
public class MvcUriComponentsBuilderApplication { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
spring: | |
resources: | |
chain: | |
enabled: true | |
strategy: | |
content: | |
enabled: true | |
cache-period: 3600 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com; | |
import static org.springframework.web.bind.annotation.RequestMethod.GET; | |
import org.springframework.boot.SpringApplication; | |
import org.springframework.boot.autoconfigure.SpringBootApplication; | |
import org.springframework.stereotype.Controller; | |
import org.springframework.web.bind.annotation.RequestMapping; | |
@Controller |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.innoq; | |
import java.util.Map; | |
import javax.script.ScriptEngine; | |
import javax.script.ScriptEngineManager; | |
import com.fasterxml.jackson.databind.ObjectMapper; | |
import org.openjdk.jmh.annotations.Benchmark; | |
import org.openjdk.jmh.annotations.Scope; | |
import org.openjdk.jmh.annotations.Setup; |
I hereby claim:
- I am mvitz on github.
- I am mvitz (https://keybase.io/mvitz) on keybase.
- I have a public key whose fingerprint is CF17 83E8 A3DE CC24 AE34 26CA 560B 340B 93E7 3B5D
To claim this, I am signing this object: