Last active
January 28, 2021 21:08
-
-
Save maxandersen/0c800113d6e29b0b571544003221439a to your computer and use it in GitHub Desktop.
This file contains 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
quarkus.banner.path = banner.txt | |
quarkus.datasource.db-kind=postgresql | |
quarkus.datasource.username=user | |
quarkus.datasource.password=password | |
quarkus.datasource.reactive.url=postgresql://localhost:5432/database | |
#quarkus.datasource.jdbc=false | |
quarkus.http.cors=true | |
quarkus.http.cors.origins=* | |
quarkus.http.cors.headers=accept, origin, authorization, content-type, x-requested-with | |
quarkus.http.cors.methods=GET, OPTIONS | |
quarkus.native.additional-build-args =\ | |
-H:+JNI,\ | |
-H:EnableURLProtocols=https,\ | |
-H:+AllowIncompleteClasspath,\ | |
-H:ReflectionConfigurationFiles=reflect-config.json,\ | |
--no-fallback,\ | |
--initialize-at-run-time=org.apache.commons.logging.impl.Log4JLogger,\ | |
--initialize-at-build-time,\ | |
-H:EnableURLProtocols=https,\ | |
--enable-all-security-services |
This file contains 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
///usr/bin/env jbang "$0" "$@" ; exit $? | |
//DEPS io.quarkus:quarkus-bom:1.11.0.Final@pom | |
//DEPS io.quarkus:quarkus-scheduler | |
//DEPS io.quarkus:quarkus-smallrye-reactive-messaging-kafka | |
//DEPS io.quarkus:quarkus-resteasy-reactive-jackson | |
//DEPS io.quarkus:quarkus-reactive-pg-client | |
//DEPS io.quarkus:quarkus-hibernate-reactive | |
//DEPS org.projectlombok:lombok:1.18.12 | |
// //SOURCES **/*.java | |
//FILES application.properties | |
//REPOS repo2=https://repo.maven.apache.org/maven2/ | |
//JAVAC_OPTIONS -parameters | |
//JAVA_OPTIONS -Djava.util.logging.manager=org.jboss.logmanager.LogManager | |
package net.foobar.event; | |
import io.smallrye.mutiny.Multi; | |
import io.vertx.mutiny.pgclient.PgPool; | |
import javax.enterprise.context.ApplicationScoped; | |
import javax.inject.Inject; | |
import javax.ws.rs.GET; | |
import javax.ws.rs.Path; | |
import javax.ws.rs.Produces; | |
import javax.ws.rs.core.MediaType; | |
import org.jboss.resteasy.reactive.RestSseElementType; | |
@Path("events") | |
@ApplicationScoped | |
public class EventResource { | |
@Inject | |
PgPool client; | |
@GET | |
@Path("test") | |
public String foobar() { | |
return "foobar"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment