And this version finally works
This commit is contained in:
parent
0c5a15be65
commit
be97c35aac
@ -11,10 +11,8 @@ repositories {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation 'com.google.inject:guice:5.1.0'
|
implementation 'com.twitter:finagle-http_2.13:20.4.0'
|
||||||
implementation 'com.twitter:finagle-http2_2.13:22.4.0'
|
implementation 'com.twitter:finagle-core_2.13:20.4.0 '
|
||||||
implementation 'com.twitter:finagle-core_2.10:6.35.0'
|
|
||||||
implementation 'com.twitter:finagle-http_2.13:22.4.0'
|
|
||||||
|
|
||||||
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.2'
|
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.2'
|
||||||
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.2'
|
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.2'
|
||||||
|
|||||||
@ -1,8 +1,10 @@
|
|||||||
package ro.mihai;
|
package ro.mihai;
|
||||||
import ro.mihai.GreetingsService;
|
|
||||||
import com.twitter.finagle.Http;
|
import com.twitter.finagle.Http;
|
||||||
|
|
||||||
public class Main {
|
public class Main {
|
||||||
|
public static void main(String []args) {
|
||||||
GreetingsService sServ = new GreetingsService();
|
GreetingsService sServ = new GreetingsService();
|
||||||
Http.serve(":8080", sServ);
|
Http.serve(":8080", sServ);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user