腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
1
回答
Spring
Boot
中
使用
复合
Id
自动
生成
Id
spring-boot
我想将
自动
生成
id
添加到我的实体类
中
下面是我的实体类 @Entity @Setter @Audited(strategy = GenerationType.AUTO) @NotNull@Enumerated(EnumType.STRING) private TranSour
浏览 36
提问于2020-08-27
得票数 0
1
回答
如何从@query注释
中
定义的insert查询
中
获取返回值
postgresql
、
spring-boot
、
spring-data-jpa
我有两个表city和shape,其中city具有
复合
主键(City和country)和一个
自动
生成
的
ID
值。此
Id
是Shape的外键。所以在城市表
中
插入数据后,我希望插入的
Id
在形状表中
使用
。我在jpa和postgres中
使用
了
Spring
boot
我已经尝试了下面的代码来获取返回值。insert
浏览 9
提问于2018-08-07
得票数 0
1
回答
cassandra
spring
boot
主键列
java
、
spring-boot
、
cassandra
我有一个主键列为“
id
”的cassandra表。我需要添加具有“first_name”、“last_name”和“age”字段的学生列表。如何将学生列表添加到表
中
,其中“
id
”列应
自动
填充从1开始的
自动
递增的值?
浏览 18
提问于2019-09-12
得票数 0
1
回答
spring
-
boot
-maven-plugin重新打包vs可执行文件配置
spring-boot
、
maven
、
spring-boot-maven-plugin
似乎有两种方法可以使maven
生成
的jar成为可执行文件。一种方法是在执行过程
中
设定一个目标 <plugins> <groupId>org.springframework.
boot
</groupId> <artifactId>
spring
-
boot
-maven-plugin<
浏览 1
提问于2020-03-28
得票数 0
1
回答
我们如何能够在不为CrudRepository接口创建bean的情况下
自动
连接它
spring
、
spring-boot
、
spring-data-jpa
public interface UserRepository extends CrudRepository<User,Integer> { 在不创建bean的情况下,我可以在UserService类
中
自动
连接它
浏览 3
提问于2021-10-31
得票数 0
3
回答
Spring
引导应用程序:如何修复js更改
spring-boot
我正在研究
Spring
应用程序。每次更改JavaScript时,我都必须重新启动tomcat服务器。有人知道如何在运行项目时修复JavaScript更改吗?
浏览 0
提问于2018-04-27
得票数 2
回答已采纳
1
回答
由于运行build.gradle文件,无法启动
java
、
spring
、
spring-boot
、
gradle
线程“主”org.springframework.
boot
.context.config.ConfigFileApplicationListener
中
的异常:接收方类java.lang.AbstractMethodError4.3.2.RELEASE' compile') compile(
浏览 3
提问于2019-10-14
得票数 0
1
回答
使用
复合
主键
生成
自动
增量
ID
php
、
mysql
、
sql
、
symfony
、
doctrine-orm
因此,每年的第一个发票(或另一个字段,如Customer)开始时都有
id
1,这意味着可以有一个
复合
主键(年份,
id
)或一个主键(即invoice_
id
)和另外两个唯一的列。我的问题是:
使用
Doctrine2和Symfony2为对象提供一个
自动
生成
的
ID
和另一个值的唯一组合的最佳方法是什么?原理对组合键的限制 每个具有<em
浏览 4
提问于2014-05-01
得票数 5
回答已采纳
2
回答
在Cosmos DB
中
从
Spring
Boot
自动
生成
id
spring-boot
、
azure-cosmosdb-sqlapi
如果我从
Spring
Boot
执行POST请求,如何在Cosmos DB中
生成
自动
递增的
Id
。
浏览 0
提问于2020-11-07
得票数 1
1
回答
创建/发布每个级别子模块的jar
java
、
spring
、
spring-boot
、
gradle
我正在尝试
使用
Gradle创建一个
Spring
项目,目的是让每个子模块成为一个不同的库(比如如何拥有等等)。base-repository: - my-
spring
-
boot
-starter-
浏览 13
提问于2022-05-19
得票数 0
回答已采纳
1
回答
包括来自
复合
gradle构建react
生成
的HTML/JS文件
java
、
reactjs
、
gradle
第一个项目有一个标准的
Spring
Boot
应用程序,我想把它链接到一个我已经添加了"build.gradle“文件的ReactJS项目。我希望将
生成
到ReactJS项目的"build/“目录
中
的文件包含到
Spring
Boot
项目的"META-INF/resources”目录
中
。dependencies { classpath 'org.springframework.
boot</em
浏览 2
提问于2017-04-04
得票数 0
1
回答
覆盖指向
复合
键JPA/Hibernate的外键名称
java
、
hibernate
、
jpa
、
spring-boot
我将
spring
-
boot
1.5.4与
spring
-data-jpa结合
使用
,并尝试在
spring
.jpa.hibernate.ddl-auto=create期间覆盖
自动
生成
的外键名称。对于简单的
id
,我能够覆盖它:simple_fk
浏览 11
提问于2017-07-15
得票数 6
回答已采纳
1
回答
无法解析org.springframework.
boot
:
spring
-
boot
-starter-thymeleaf
java
、
spring
、
spring-boot
、
build.gradle
、
thymeleaf
我正在学习如何
使用
spring
,而且我对此还是个新手。我试图添加胸腺叶到我的项目与Gradle依赖,但它无法解决。我认为我将胸腺叶添加到项目中的方式是错误的。我该怎么办?:
spring
-
boot
-gradle-plugin:2.2.4.RELEASE')}apply plugin: 'org.springframework.
boot
testCompile group: 'junit', name:
浏览 132
提问于2020-02-11
得票数 0
1
回答
分级多项目存储库配置不适用于
spring
-
boot
应用程序
java
、
spring-boot
、
gradle
在根build.gradl_e下,位于_gps-framework/如下所示:
id
'java'
id
"maven-publish"
id
'org.springframework.
boot
' version '2.3.4.RELEASE'
浏览 0
提问于2020-10-13
得票数 2
1
回答
在springboot中
使用
embeddedId
中
的序列
spring-boot
、
composite-key
、
database-sequence
我有下一个问题->我在我的数据库上有一个带有
复合
id
的表…Supose (
Id
1,
Id
2,
Id
3,
Id
4),
Id
4是由数据库上的一个序列
生成
的。我的问题是,在
spring
boot
中
,我
生成
了实体'Table1‘和相应的'Table1
Id
',但是当我想从序列
中
添加相应的GeneratedValue时,没有<em
浏览 27
提问于2021-09-02
得票数 0
回答已采纳
2
回答
Spring
java.lang.NoClassDefFoundError: com/ mongodb /MongoException$DuplicateKey
spring
、
maven
、
spring-boot
、
spring-data-mongodb
; this.
id
=
id
; return<parent> <artifactId>
spring
-
boot
-starter-parent</<
浏览 6
提问于2015-04-17
得票数 3
回答已采纳
3
回答
无法在插件{}之前设置变量
spring-boot
、
gradle
、
build.gradle
我有这个build.gradle
id
'org.springframework.
boot
' version '2.1.6.RELEASE'} compileOnly group: 'org.springframework.
boot
', name: '
浏览 1
提问于2019-07-16
得票数 1
回答已采纳
1
回答
由“导入”函数的
spring
错误消息创建的build.gradle
java
、
gradle
、
intellij-idea
、
spring-initializr
我对Gradle还是新手,我遵循了教程的说明,只是我选择了
Spring
.Initializr
中
的Gradle,而不是maven。它为build.gradle
生成
了以下代码
id
'org.springframework.
boot
' version '2.6.3'
id
'io.
spring
.dependency-management:
spring
-cloud-star
浏览 5
提问于2022-02-14
得票数 0
回答已采纳
1
回答
找不到符号--
Spring
Boot
Maven兄弟姐妹
java
、
maven
、
spring-boot
使用
Maven
spring
引导插件重新打包没有帮助。 <groupId>org.springframework.
boot
</groupId> <artifactId>
spring
-<
浏览 2
提问于2019-07-17
得票数 0
1
回答
JPA实体:找不到持久化
java
、
spring-boot
、
jpa
、
spring-data-jpa
、
entitymanager
我得到了这个错误 Caused by: java.lang.IllegalArgumentException: Unable to locate persister: model.Author 在
Spring
Boot
应用程序中
使用
我的EntityManager时。NoArgsConstructor@Table(name = "authors") @
Id
@GeneratedValue(stra
浏览 30
提问于2020-12-13
得票数 0
点击加载更多
热门
标签
更多标签
云服务器
对象存储
ICP备案
云点播
腾讯会议
活动推荐
运营活动
广告
关闭
领券