Skip to content

linkerlin/spring-quasar-demo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

This is a spring boot use Quasar `s fiber as httpclient( Apache Http Client )demo . to give a quick start with Quasar from spring.

Run with it

mvn clean install;java -jar target//fiber-demo-cap.jar

http request: http://localhost:8080/api/client/data

This project was built by Capsule. if use spring own maven plugin to build fat jar .there is something wrong.

Exploring the Code

HttpCLientConfig it is a config for spring RestTemplate to use Apache Http Client as HttpClient,

when FiberService invoke FiberResource, all the methods are suspendable except RestTemplate.(...), it is from third-part jar .so we can not mak it with @Suspendable

we must manually list them in META-INF/suspendable-supers(for interface) and suspendable(other method).

About

spring boot application with qusar fiber

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%