腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(5991)
视频
沙龙
1
回答
如
何在
spring
boot
和
kotlin
中
初始化
HTTP
API
、
、
我想知道如何集成
spring
boot
和
kotlin
项目。我指的是这个链接:但是,它需要使用以下链接 https://start.
spring
.iolanguage=
kotlin
&type=gradle-projec
浏览 4
提问于2019-07-11
得票数 0
2
回答
未解决的引用:使用@ExtendWith注释的SpringExtension
、
、
、
、
基本设置可以工作,我可以使用新的注释,
如
@BeforeAll
和
@AfterAll,但是,我认为由于无法解析@ExtendWith(SpringExtension::class),所以无法
初始化
测试类来使用注入的资源files// Does some extra work to set up
Spring
Boot
. // Specifically this gives"o
浏览 0
提问于2017-11-15
得票数 0
回答已采纳
2
回答
无法找到合适的主类,请添加“mainClass”属性-> [帮助1] [错误]
、
、
、
、
我从
spring
引导
初始化
程序获得了一个新项目,他的第一次运行很好,但是下一次运行时我有以下错误:请添加一个mainClass,<?xml version="1.0" encoding="UTF-8"?> <project xmlns="<em
浏览 11
提问于2021-12-21
得票数 -1
回答已采纳
2
回答
Spring
Initializr生成的pom.xml出错
、
、
、
、
我正在使用
Spring
Tool Suite,我想用
Kotlin
、
Spring
和
Maven制作REST
API
,但是我的pom.xml在通过
Spring
Initializr创建项目后出现错误。> <project xmlns="
http
://maven.apache.org/POM/4.0.0" xmlns:xsi="
http
://www.w3.or
浏览 0
提问于2018-11-16
得票数 3
1
回答
找不到activemq.xml的
Spring
NamespaceHandler
、
、
、
、
我正在尝试在
Spring
Boot
2.1.7应用程序
中
配置ActiveMQ代理,特别是启用statisticsBrokerPlugin。="
http
://www.springframework.org/schema/beans
http
://www.springframework.org/schema/beans/
spring
-beans.xsd
spring</em
浏览 2
提问于2019-08-29
得票数 1
2
回答
新生成的Sprint应用程序只返回401
、
、
我有一个使用
Kotlin
新创建的SpringBoot3.0应用程序,它在所有
HTTP
调用
中
返回401。MyApiApplication.kt4.0.0 org.springframework.
boot
spring
-启动程序-父程序3.0.0-快照 <groupId&
浏览 5
提问于2022-10-19
得票数 -1
1
回答
Spring
Boot
2.0.0.M7,
Kotlin
,Gradle - bean找不到
、
我试图运行一个用
Kotlin
编写并使用Gradle构建的
Spring
小应用程序。当我在IntelliJ
中
运行应用程序时,我会收到以下消息: com.mycompany.app.rest.
api
.MyApi
中
构造函数的参数1需要一个无法找到的'com.mycompany.app.domain.UserRepository:
kotlin
-allopen:${kotlinVersion}")} apply plugin
浏览 0
提问于2018-01-04
得票数 0
回答已采纳
1
回答
如
何在
编写自定义
kotlin
-dsl时忽略显式导入类(
如
gradle
kotlin
脚本)
、
、
在gradle的
kotlin
构建脚本
中
,我们不需要在构建脚本build.gradle.kts.
中
显式导入类或函数,比如plugins、repositories或dependencies implementation("org.springframework.
boot
:
spring
-
boot
-starter-web
浏览 0
提问于2018-11-27
得票数 1
回答已采纳
1
回答
如
何在
另一个
spring
引导项目中将本地
spring
引导项目添加为依赖项
、
、
、
以下是两个项目的build.gradle
和
settings.gradle pluginManagement { implementation 'org.jetbrains.
kotlin
:
kotlin
-reflect' implementation 'org.jetbrains.
kotlin
:
kotlin
浏览 1
提问于2019-03-12
得票数 7
2
回答
Gradle5.2
中
的Gradle
kotlin
未解决的参考文献:可靠性测试
、
、
、
一个带有
Kotlin
源代码的多模块项目在升级到第5.2级后停止工作,因为没有找到来自编译项目的
Kotlin
类(“依赖测试”)依赖项。Task :test-test:compileKotlin FAILED e: /Users/houshuai/Documents/dev/demo/test/test-test/src/main/
kotlin
/example/test/controller/TestCon
浏览 0
提问于2019-04-29
得票数 0
2
回答
Spring
Boot
Kotlin
项目在Eclipse
中
没有工作
、
、
、
、
我在eclipse
中
运行了一个
spring
引导项目,其版本如下
Kotlin
:1.3.41@Configurationclass SwaggerConfig { fun
api
(): Docket")))
浏览 0
提问于2019-07-18
得票数 0
回答已采纳
1
回答
使用带有
spring
-
boot
的
kotlin
时,启用Hystrix会导致NullPointerException
、
、
、
、
当我将Hystrix支持添加到
kotlin
spring
boot
项目中时,一个抽象类的一些字段突然变成了空。Hystrix代理似乎不能正确处理字段: 我有一个抽象的
kotlin
类ClientHandler,它有两个直接
初始化
的字段logger
和
test。我有一个ClientHandler的
kotlin
子类SomeHandler,我在一个类
中
通过自动装配使用它。正如在使用子类时所期望的那样,这两个字段被
初始化
。但是当我添加Hystri
浏览 23
提问于2019-04-03
得票数 2
回答已采纳
1
回答
当从cmd运行时,
Spring
AOP无法工作
、
、
、
我在amazon
中
运行一个
Spring
引导应用程序,当调用一些带注释的方法时,我使用
Spring
登录到数据库。/libs-snapshot" }} classpath:
spring
-
boot
-gradle-plugin:$springBootVe
浏览 0
提问于2018-01-31
得票数 0
回答已采纳
1
回答
从Springboot版本2.3.0开始,
Kotlin
JSR303 Bean验证不起作用。
、
、
问题: bean注释(
如
@NotNull、@NotBlank等)被忽略,验证也不会启动。/groupId> <version>2.2.13.RELEASE</groupId> <artifactId>
spring
-
boot
-starter-web<
浏览 2
提问于2021-12-23
得票数 0
回答已采纳
1
回答
无法获得SpringBoot Lib的Gradle
Kotlin
构建脚本
、
我在构建脚本上尝试了很少的方法,但是仍然没有成功地将springboot库放到我的jar
中
,我可以知道我的脚本有什么问题吗?version "2.1.4.RELEASE" apply false
kotlin
("plugin.
spring
(plugin = "org.jetbrains.
kotlin
.plugin.
sp
浏览 1
提问于2019-06-21
得票数 1
回答已采纳
2
回答
无法在IntelliJ社区版中使用Gradle添加应用程序服务器
、
、
、
、
我正在尝试使用
spring
框架构建web服务。我正在使用IntelliJ社区版IDE
和
gradle构建系统。:
spring
-
boot
-gradle-plugin:${springBootVersion}")apply plugin: '
kotlin
浏览 2
提问于2017-08-09
得票数 0
回答已采纳
1
回答
Gradle KTS。如何将依赖项配置从主构建移动到单独的文件?
、
、
、
我试图在
kotlin
中
创建模块化的构建脚本。主要脚本
和
依赖关系脚本。( //
Spring
boot
"org.springfr
浏览 3
提问于2017-06-20
得票数 3
回答已采纳
1
回答
Kotlin
多平台在前端
和
后端之间共享实体,并禁止依赖项
、
、
因此,最近我不得不重构旧的Java Maven多项目(
Spring
、Data、MVC、Freemarker、Swing、RMI等)&决定拆分前/后,切换到Gradle /
Kotlin
/ Angular第二,将
Spring
Boot
依赖项应用于
Kotlin
Multiplatform模块。 第三,为ts创建Entities模块定义。
浏览 0
提问于2021-09-22
得票数 1
1
回答
Kotlin
1.3 +
Spring
Boot
:已经有“.”豆法
、
这个项目在
Kotlin
1.2.71
中
运行得完美无缺。我非常感谢让它与
Kotlin
1.3.0一起工作的任何建议!下面列出了我的完整build.gradle。build.gradle: ext.
kotlin
_version = '1.3.0' // Was '1.2.71' classpath "or
浏览 1
提问于2018-11-06
得票数 2
回答已采纳
1
回答
子项目的分级依赖不起作用
、
、
、
、
我与
kotlin
和
gradle一起创建了一个使用
spring
的项目,以研究微服务
中
的六边形体系结构。我在模块中使用IntelliJ来划分代码,但是
spring
依赖项在模块(或子项目)
中
不起作用。("org.springframework.
boot
:
spring
-
boot
-starter-data-redis-reactive") implementation("org.springfram
浏览 10
提问于2021-12-31
得票数 0
回答已采纳
点击加载更多
相关
资讯
使用Spring Boot和Kotlin创建RESTfull API
Spring Boot 2.0之新特性
Spring Boot 2.0发布,新特性一览
Spring Boot 2.x 新特性总结及迁移指南
(新版)Springboot3+微服务实战12306高性能售票系统23章
热门
标签
更多标签
云服务器
对象存储
ICP备案
云点播
实时音视频
活动推荐
运营活动
广告
关闭
领券