会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
博主首页
笑~笑
博客园
新随笔
联系
管理
上一页
1
···
16
17
18
19
20
21
22
23
24
···
48
下一页
2022年3月24日
No EntityManager with actual transaction available for current thread - cannot reliably process 'merge' call
摘要: No EntityManager with actual transaction available for current thread - cannot reliably process 'merge' call 需要添加事务注解 @Transactional
阅读全文
posted @ 2022-03-24 11:42 笑~笑
阅读(370)
评论(0)
推荐(0)
2022年3月23日
vue发送ajax请求
摘要: 使用的版本信息 npm install axios 发送post请求 如果后端已经配置了跨域 还是报错 加上 withCredentials: false, axios.post("http://127.0.0.1:9000/dev/app/auth/login-secret",{}).then(f
阅读全文
posted @ 2022-03-23 17:19 笑~笑
阅读(212)
评论(0)
推荐(0)
jpa实体对象调用set方法会自动修改数据库
摘要: 一旦将属性set ,jpa会自动修改 import org.springframework.beans.BeanUtils; JobPO jobPOre = jobService.getByJobId(jobId).orElse(null); if(jobPOre==null){return Res
阅读全文
posted @ 2022-03-23 10:39 笑~笑
阅读(310)
评论(0)
推荐(0)
2022年3月22日
The given id must not be null
摘要: The given id must not be null jpa查询传入的实体主键id为null导致的错误
阅读全文
posted @ 2022-03-22 16:59 笑~笑
阅读(563)
评论(0)
推荐(0)
2022年3月21日
更改gradle下载文件保存位置,更改.gradle文件位置
摘要: 添加环境变量GRADLE_USER_HOME,重启电脑
阅读全文
posted @ 2022-03-21 15:50 笑~笑
阅读(213)
评论(0)
推荐(0)
2022年3月18日
java获取不到真实ip;获取不到ip地址;
摘要: 请求转发用的是Nginx,考虑可能是没有将请求方真实ip传递给后端修改配置文件nginx.conf location /api { proxy_pass http://127.0.0.1:8181/; #以下为新增 proxy_set_header Host $host; proxy_set_hea
阅读全文
posted @ 2022-03-18 14:09 笑~笑
阅读(588)
评论(0)
推荐(0)
2022年3月16日
Executing an update/delete query
摘要: Executing an update/delete query 执行新增修改的时候 默认是有事务的 entityManager.createNativeQuery(sql).executeUpdate();加上事务注解即可 @Transactional public void save(ApiLo
阅读全文
posted @ 2022-03-16 15:06 笑~笑
阅读(1230)
评论(0)
推荐(0)
HttpServletRequest httpServletRequest = getHttpServletRequest();获取请求对象信息
摘要: 获取所有Header信息,获取头部信息 public String getHeader(HttpServletRequest request){ HashMap<Object, Object> map = new HashMap<>(); Enumeration<String> headerName
阅读全文
posted @ 2022-03-16 15:03 笑~笑
阅读(157)
评论(0)
推荐(0)
2022年3月15日
restTemplate处理请求状态非200的逻辑
摘要: @Bean public RestTemplate restTemplate(ClientHttpRequestFactory factory){ RestTemplate restTemplate = new RestTemplate(factory); restTemplate.setError
阅读全文
posted @ 2022-03-15 11:24 笑~笑
阅读(190)
评论(0)
推荐(0)
Please, upgrade your dependencies to the actual version of core-js.
摘要: 请将依赖项升级到core js的实际版本。 npm install --save core-js@^3
阅读全文
posted @ 2022-03-15 09:42 笑~笑
阅读(6784)
评论(0)
推荐(0)
上一页
1
···
16
17
18
19
20
21
22
23
24
···
48
下一页
公告