kotlin - 创建 Micronaut 命令行应用程序时 Kotlin 不兼容
问题描述
每当我尝试使用 Micronaut 和 Kotlin 创建命令行应用程序时:
mn create-cli-app cli2 --features kotlin
我收到以下警告:
| Warning The following features are incompatible with other feature selections and have been removed from the project
| kotlin
生成的项目已经回退到Java,非常优雅。
这是“错误”还是当前预期的行为?
解决方案
要选择语言(java、groovy 或 kotlin),最好使用--lang
标志而不是--features
. 正在做:
$ mn create-cli-app mycli --lang=kotlin
| Generating Kotlin project...
| Application created at /tmp/mycli
按预期工作。
推荐阅读
- python-3.x - python 垃圾收集器不会删除 tf.keras 模型
- php - 如何在 laravel 的表中创建关系?
- php - 将相同商品添加到购物车时如何在会话中更新产品数量?
- python - 使用 python flask_mail msg.body="" 通过电子邮件发送多个 html 表单字段的数据
- caching - Gitlab CI 在每个作业使用后再次保存缓存
- reactjs - Botframework Create Directline 从服务器获取令牌
- reactjs - 基本待办事项项目中的“DELETE_TODO”
- excel - 检查小时列是否存在所有时间
- spring-boot - WebLogic Server 中未启动 Spring Web MVC
- angularjs - 无法使用 handlererror 重定向