Skip to content

Commit

Permalink
🎨 feat: 添加IDE启动类
Browse files Browse the repository at this point in the history
  • Loading branch information
cokie committed Jan 15, 2024
1 parent 9a6a240 commit af6cc62
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
34 changes: 34 additions & 0 deletions tokisaki-starter/src/main/java/io/micro/starter/Application.kt
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()
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.micro.starter
package io.micro.starter.config

import io.micro.core.function.sdk.Cmd
import io.micro.server.auth.infra.po.AuthorityEntity
Expand Down

0 comments on commit af6cc62

Please sign in to comment.