通过Spring Data JPA调用deleteByXXX接口,报错:org.springframework.dao.InvalidDataAccessApiUsageException: No EntityManager with actual transaction available for current thread - cannot reliably process 'remove'
把项目升级到Spring boot 2.5.5,在编译原理的项目时报错:[INFO] --- maven-resources-plugin:3.2.0:resources (default-resources) @ myproject ---[INFO] Using 'UTF-8' encoding to copy filtered resources.[INFO] Using 'UTF-8' e
使用Spring Data Mongo插入带有点符号(.)的键时,抛出MappingException异常。报错信息如下:org.springframework.data.mapping.model.MappingException: Map key user.name contains dots but no replacement was configured! Make sure map k
Spring Boot提供了两种方式来禁用自动化配置:注解方式以及配置文件(application.properties)方式。注解方式在@SpringBootApplication注解上添加exclude属性,把MongoAutoConfiguration和MongoDataAutoConfiguration排除即可如下:@SpringBootApplication(exclude = {Mon