<dependency> <groupId>org.wvlet.airframe</groupId> <artifactId>airframe</artifactId> <version>20.6.1</version> </dependency> import wvlet.airframe._ object HelloWorld extends App { val hello: String = bind[String] println(hello) } object MyApp { def main(args: Array[String]): Unit = { val design = newDesign .bind[String].toInstance("Hello, Airframe!") design.withSession { session => Hello.run(session) } } }


上一篇:
下一篇:
切换中文