小编kaf*_*fka的帖子

Micronaut HelloWorld 错误:意外错误:非法名称 .$HelloControllerDefinition

尝试在 https://docs.micronaut.io/latest/guide/index.html#creatingServer上继续演示代码

步骤如下? src/main/java/example/helloworld/HelloController.java

出现错误:

> Task :compileJava FAILED
Note: Creating bean classes for 1 type elements
error: Unexpected error: Illegal name .$HelloControllerDefinition
1 error

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileJava'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. …
Run Code Online (Sandbox Code Playgroud)

micronaut

4
推荐指数
1
解决办法
363
查看次数

标签 统计

micronaut ×1