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:
I hereby claim:
To claim this, I am signing this object:
| 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; |
| 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 |
| spring: | |
| resources: | |
| chain: | |
| enabled: true | |
| strategy: | |
| content: | |
| enabled: true | |
| cache-period: 3600 |
| 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 { |
| ~/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 |
| 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)) { |
| package com.innoq.java17; | |
| import java.util.ArrayList; | |
| import java.util.List; | |
| public class JugAugsburg { | |
| // Switch Expressions | |
| static void switchExpressions() { | |
| int i = 3; |