- 博客(6)
- 收藏
- 关注
原创 springboot报错:Use of @OneToMany or @ManyToMany targeting an unmapped class:
Use of @OneToMany or @ManyToMany targeting an unmapped class
2022-05-27 17:41:33
456
原创 解决jpa Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1
问题jpa删除数据时,无法进行删除操作,且删除报错解决1、方法添加@Transactional(rollbackFor = Exception.class,propagation = Propagation.SUPPORTS)2、调用的Repository的方法添加@Modifying和@Transactional
2022-05-18 13:50:42
909
原创 jpa 中文排序
定义package com.htaw.cs.base.common.contents;import org.hibernate.dialect.MySQL5Dialect;import org.hibernate.dialect.function.SQLFunctionTemplate;import org.hibernate.type.StandardBasicTypes;import org.springframework.stereotype.Component;/** * @aut
2021-10-21 08:51:01
568
转载 springboot连接MongoDB
pom.xml添加依赖<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-mongodb</artifactId></dependency>控制层package gd.adminsystem.system.controller;import gd.adminsystem.s
2020-11-23 14:42:55
831
原创 文件异步上传oss
文件异步上传oss//新开线程60s不用自动消亡ExecutorService service = Executors.newCachedThreadPool(); service.submit(new testRun("xmSubmit", dataYMD,bytes,fileName1, "3", accessKeyId, accessKeySecret));@Async class testRun implements Callable<Integer>{ S
2020-09-17 16:14:37
1840
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人