我有个实体
@Entity
public class ContactList extends Base {
private static final long serialVersionUID = BaseEntity.serialVersionUID;
@ManyToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER)
private Collection<User> contacts = new HashSet<User>();
public ContactList()
我有一个用户类,它包含一个HashMap,用于在两个自定义对象之间映射。
目前,每当我试图在mongodb中保存其中一个用户时,就会得到:
org.springframework.data.mapping.model.MappingException: Map key net.bigpoint.globalchat.models.keys.ProjectId@0 contains dots but no replacement was configured! Make sure map keys don't contain dots in the first place or conf
我使用将以下实体持久化到PostgreSQL中
@Table("abc_configurations")
data class AbcConfiguration(
val name: String,
val distribution: Map<String, Int>
)
发行版是PostgreSQL表中的jsonb列:
CREATE TABLE abc_configurations
(
name VARCHAR(50) PRIMARY KEY,
distribution JSONB NOT NULL
我使用documents4j将docx转换为PDF,虽然在IDEA中运行,但当我使用maven或jenkins运行测试时,我得到了一个错误: java.lang.IllegalStateException: Shutdown in progress
at java.base/java.lang.ApplicationShutdownHooks.remove(ApplicationShutdownHooks.java:82) ~[na:na]
at java.base/java.lang.Runtime.removeShutdownHook(Runtime.ja