-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
cokie
committed
Jan 15, 2024
1 parent
9a6a240
commit af6cc62
Showing
2 changed files
with
35 additions
and
1 deletion.
There are no files selected for viewing
34 changes: 34 additions & 0 deletions
34
tokisaki-starter/src/main/java/io/micro/starter/Application.kt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package io.micro.starter | ||
|
||
import io.quarkus.runtime.Quarkus | ||
import io.quarkus.runtime.annotations.QuarkusMain | ||
import org.eclipse.microprofile.openapi.annotations.OpenAPIDefinition | ||
import org.eclipse.microprofile.openapi.annotations.info.Contact | ||
import org.eclipse.microprofile.openapi.annotations.info.Info | ||
import org.eclipse.microprofile.openapi.annotations.info.License | ||
|
||
@QuarkusMain | ||
class Application | ||
|
||
fun main(args: Array<String>) { | ||
Quarkus.run(*args) | ||
println("Tokisaki 启动成功!") | ||
Quarkus.waitForExit() | ||
} | ||
|
||
@OpenAPIDefinition( | ||
info = Info( | ||
title = "Tokisaki API", | ||
version = "1.0.0", | ||
contact = Contact( | ||
name = "Tokisaki API Support", | ||
url = "https://spcookie.github.io/", | ||
email = "[email protected]" | ||
), | ||
license = License( | ||
name = "Apache 2.0", | ||
url = "https://www.apache.org/licenses/LICENSE-2.0.html" | ||
) | ||
) | ||
) | ||
class Api : jakarta.ws.rs.core.Application() |
2 changes: 1 addition & 1 deletion
2
...java/io/micro/starter/FunctionRegistry.kt → .../micro/starter/config/FunctionRegistry.kt
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