博主首页
上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 47 下一页
摘要: 使用的版本信息 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 笑~笑 阅读(206) 评论(0) 推荐(0)
摘要: 一旦将属性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 笑~笑 阅读(307) 评论(0) 推荐(0)
摘要: The given id must not be null jpa查询传入的实体主键id为null导致的错误 阅读全文
posted @ 2022-03-22 16:59 笑~笑 阅读(558) 评论(0) 推荐(0)
摘要: 添加环境变量GRADLE_USER_HOME,重启电脑 阅读全文
posted @ 2022-03-21 15:50 笑~笑 阅读(211) 评论(0) 推荐(0)
摘要: 请求转发用的是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 笑~笑 阅读(585) 评论(0) 推荐(0)
摘要: Executing an update/delete query 执行新增修改的时候 默认是有事务的 entityManager.createNativeQuery(sql).executeUpdate();加上事务注解即可 @Transactional public void save(ApiLo 阅读全文
posted @ 2022-03-16 15:06 笑~笑 阅读(1219) 评论(0) 推荐(0)
摘要: 获取所有Header信息,获取头部信息 public String getHeader(HttpServletRequest request){ HashMap<Object, Object> map = new HashMap<>(); Enumeration<String> headerName 阅读全文
posted @ 2022-03-16 15:03 笑~笑 阅读(152) 评论(0) 推荐(0)
摘要: @Bean public RestTemplate restTemplate(ClientHttpRequestFactory factory){ RestTemplate restTemplate = new RestTemplate(factory); restTemplate.setError 阅读全文
posted @ 2022-03-15 11:24 笑~笑 阅读(186) 评论(0) 推荐(0)
摘要: 请将依赖项升级到core js的实际版本。 npm install --save core-js@^3 阅读全文
posted @ 2022-03-15 09:42 笑~笑 阅读(6773) 评论(0) 推荐(0)
摘要: 缺少开发依赖包 解决办法: 1.安装开发依赖: npm install babel-plugin-import -D 1.把原本已生成的node-models删除 2.重新使用npm install命令下载依赖 阅读全文
posted @ 2022-03-15 09:35 笑~笑 阅读(13904) 评论(0) 推荐(2)
上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 47 下一页