- 博客(7)
- 收藏
- 关注
原创 Check failed: error == cudaSuccess (8 vs. 0) invalid device function
@[TOC](Check failed: error == cudaSuccess (8 vs. 0) invalid device function)Check failed: error == cudaSuccess (8 vs. 0) invalid device function原因:设置的算力和当前的gpu版本不匹配算力匹配gpu百度或官网查询即可如我的gtx2060,算力7.5应对应设置 -gencode arch=compute_75,code=sm_75cuda支持到安装c
2021-06-28 16:24:35
598
原创 springboot admin服务监控 application offline + UnknownHostException 域名解析导致使用计算机名作为域名,出现错误
解决:application.yml配置springboot.boot.admin.client.instance.prefer-ip:true(是否使用注册的ip地址来取代其他设置url中hostname的值,默认false,ip地址值是InetAddress.getLocalHost(),即主机名)
2021-04-23 22:41:13
1185
3
原创 spring跨域配置 allowedOrigins
When allowCredentials is true, allowedOrigins cannot contain the special value "*"since that cannot be set on the “Access-Control-Allow-Origin” response header.解决public class WebMvcConfig implements WebMvcConfigurer { @Override public void addCor
2021-04-23 22:35:56
6876
原创 maven错误:unknow文件夹--报错:Failure to find xxx:pom:unknown
maven错误:unknow文件夹:报错:Failure to find xxx:pom:unknown
2020-11-12 16:33:04
2680
2
原创 springboot项目中使用mysql连接遇到时区timezone问题,和编码encoding问题解决
springboot项目中使用mysql连接遇到时区timezone问题,和编码encoding问题解决问题原因1.application.properties的设置1.1spring.datasource.driver-class-name1.2spring.datasource.url1.3spring.datasource.url其他问题总结问题原因1.mysql版本问题导致需要时区的指定(mysql数据库时区与我们给的时区(默认)不一致)。2.中文需要encoding的指定1.applica
2020-06-24 22:59:40
2474
原创 Springboot+SpringDataJpa项目出现Incorrect string value:‘’ for column .. at row 1
Springboot+Spring Data Jpa 项目出现java.sql.SQLException: Incorrect string value: '\xE7\x8E\x8B\xE8\x8F\xB2' for column 'nick' at row 1解决问题原因新手推荐使用navicat修改1. 字段colume:2. 表table:3. 表格+字段(推荐)4. 数据库4.1 修改现有数据库4.2 新建数据库(在使用JPA生成表格之前指定字符集)5.mysql默认配置总结1.已有数据库2.未建
2020-06-24 21:41:23
1529
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人