Bug
你好啊cbw
这个作者很懒,什么都没留下…
展开
-
Resolved [org.springframework.http.converter.HttpMessageNotWritableException: No converter found for
Resolved [org.springframework.http.converter.HttpMessageNotWritableException: No converter found for return value of type: class com.cbw.receive.pojo.User]实体类缺少get set方法原创 2022-04-19 12:14:10 · 1551 阅读 · 0 评论 -
NoClassDefFoundError: org/apache/poi/poifs/filesystem/FileMagic 或者reflect.InvocationTargetException
使用poi的XSSFWorkbook wb = new XSSFWorkbook(is);将excel模板文件读取流读is交给工作簿的时候报上面的错误,主要是版本问题。解决:poi和poi-ooxml的依赖版本要一致,而且使用3.17会报InvocationTargetException,改用3.16就可以。...原创 2022-03-12 20:16:21 · 664 阅读 · 0 评论 -
com.github.tobato.fastdfs.exception.FdfsConnectException: 无法获取服务端连接资源:can‘t create connection to/192
FastDFS文件上传Bug:com.github.tobato.fastdfs.exception.FdfsConnectException: 无法获取服务端连接资源:can't create connection to/192.168.100.129::22122端口号问题检查防火墙是否关闭,如果防火墙关闭是无法开放端口的检查防火墙状态systemctl status firewalld开启防火墙systemctl start firewa...原创 2022-01-30 14:39:29 · 3203 阅读 · 2 评论 -
插入和读取数据库时间
实体类Date类型数据库字段类型datetimemybatis中jdbcType使用TIMESTAMP<result column="creattime" jdbcType="TIMESTAMP" property="creattime" />acount.setModifytime(new Date()).setIsdelete("N").setDepartname(departname);<if test="creattime != null"> c原创 2022-01-20 11:23:52 · 407 阅读 · 0 评论 -
@RequestBody和@RequestParam接收前端数据格式
var data = { name:Name, Id:Code, pageIndex:1, pageSize:10 };$.ajax({ url:base_path + '/list', type: "post", contentType: "application/json; charset=utf-8", data:JSON.stringify(data), ..... su...原创 2021-12-02 18:49:01 · 1800 阅读 · 0 评论 -
Ceph可视化管理界面无法访问 Module ‘dashboard‘ has failed: IOError(“Port 8843 not free on ‘192.168.100.131‘“,)
Ceph可视化管理界面无法访问https://192.168.100.131:8443/#/dashboardceph -s查看集群信息Module 'dashboard' has failed: IOError("Port 8843 not free on '192.168.100.131'",)解决:1、将dashboard迁移至其它mgr节点...原创 2021-11-20 19:25:52 · 1934 阅读 · 0 评论 -
如何连接别人打包来的虚拟机
报错:VMware出现配置文件 .vmx 是由VMware产品创建,但该产品与此版 VMware workstation 不兼容,因此无法使用(VMware版本不兼容问题)首先先修改.vmx文件修改成你VM对应的版本号然后修改.vmdk文件同样修改成VM对应的版本号现在可以开启虚拟机了,但是本机Xshell却无法连接此虚拟机修改本机虚拟机ip前24位与此虚拟机ip一致即可...原创 2021-11-17 22:51:20 · 1629 阅读 · 0 评论 -
Required String parameter ‘××ב is not present
@RequestParam注解接受数据,这个注解不支持json数据。public Object insert(@RequestParam("userName") String userName)@PathVariable,@RequestParam,@RequestBody以@RequestBody注解方式接受json请求数据,而后将接收到的json数据转化为json对象,可以使用json对象的get()方法取得参数值public Object insert(@Request...原创 2021-11-09 16:30:45 · 141 阅读 · 0 评论 -
数据库中文乱码
在.sql文件开头位置添加SET NAMES 'utf8';原创 2021-10-31 19:41:32 · 79 阅读 · 0 评论 -
.sql文件导入到docker部署的mysql中
首先使用Xshell连接docker中的Mysql然后直接将sql文件拖入Xshell窗口,完成上传启动mysql容器 docker start mysql将上传文件shop_goods.sql移动到mysql中 docker cp shop_goods.sql mysql:/shop_goods.sql然后进入mysql容器 docker exec -it mysql /bin/bash登录mysql即mysql -uroot -p123456;创建数据库create datab.原创 2021-10-31 19:38:52 · 533 阅读 · 0 评论 -
Failed to start Docker Application Container Engine.
docker启动不起来,就是它的配置文件daemon.json出问题了,要么是内容问题要么是格式问题,这边在创建私有仓库过程,对该文件添加一个Key,没有加逗号原创 2021-10-24 23:11:25 · 1824 阅读 · 0 评论 -
Docker中的容器无法启动
docker logs c_nginx 查看具体容器的日志配置文件问题有问题,多了“er”,应该是user nginx;然后重启容器 docker start c_nginx , 通过docker ps查看正在运行到的容器原创 2021-10-20 11:15:12 · 529 阅读 · 0 评论 -
Docker创建启动nginx报错docker: Error response from daemon: driver failed programming external connectivity
重启docker和容器原创 2021-10-20 10:48:32 · 1020 阅读 · 0 评论 -
Zookeeper is not connected yet
连接Zookeeper注册中心时,出现Zookeeper is not connected yet!1.pom.xml引入的坐标版本与服务器的Zookeeper版本不一致2.linux的防火墙未关闭systemctl status firewalldsystemctl stop firewalld原创 2021-10-16 03:25:16 · 1093 阅读 · 0 评论 -
Failed to introspect Class [org.springframework.cloud.netflix.hystrix.HystrixCircuitBreakerConfigura
Caused by: java.lang.IllegalStateException: Failed to introspect Class [org.springframework.cloud.netflix.hystrix.HystrixCircuitBreakerConfiguration] from ClassLoader [jdk.internal.loader.ClassLoaders$AppClassLoader@1f89ab83]解决方案:引入hystrix坐标<depe原创 2021-10-06 16:49:39 · 1406 阅读 · 0 评论 -
NoSuchBeanDefinitionException: No qualifying bean of type ‘com.mapper.DrugMapper‘ available
mybatis反向生成插件只是根据我们给的表生成实体类、mapper接口和mapper映射文件。之前mapper接口的代理的对象/接口实现类对象是通过sqlSession.getMapper(DrugMapper.class)来获取的,在spring配置文件中整合mybatis配置时通过装配MapperScannerConfigurer来生成指定包下所有接口的动态代理类。报错是因为包路径指定错误。...原创 2021-08-17 19:59:39 · 567 阅读 · 0 评论 -
maven中target目录没有生成xml、properties文件导致配置中找不到spring.xml、springmvc.xml、mybatis.xml、jdbc.properties
pom.xml文件中指定扫描位置原创 2021-08-17 19:41:44 · 456 阅读 · 0 评论 -
ConversionFailedException: Failed to convert from type String to type Date for value ‘ ‘;日期格式转换异常
1.属性上使用注解@DateTimeFormat @JsonFormat1.在多条件分页查询的时候,如果日期是空的,在映射到实体类日期属性的时候就会出问题,显示类型不匹配,需要在日期属性上添加注解,即使是空内容也要转成这个pattern格式。@DateTimeFormat(pattern = "yyyy-MM-dd")另外,Team中也有时间属性createTime,前后台传输的时候就需要格式化日期。后台查询的日期是一串数字或美式时间,需要使用注解转换,还有改时区。@JsonF...原创 2021-08-17 00:23:17 · 2896 阅读 · 0 评论 -
nested exception is java.io.FileNotFoundException:class path resource[springmvc.xml] does not exist
报错,说找不到springmvc.xml配置文件,说明在web.xml中的配置springmvc时候出现问题,有时候编译的时候,配置文件没有被编译到class路径中(target中的classes)classpath只会在class路径中查找配置文件,这时候可以在classpath后加星号*,就会扩大查找范围,或者直接把配置文件复制到target的classes中。...原创 2021-08-14 17:07:58 · 1577 阅读 · 0 评论 -
springjunit4classrunner找不到
使用这个版本时,无法引入这两个注解修改版本就可以了原创 2021-08-14 17:00:34 · 272 阅读 · 0 评论 -
Tomcat乱码问题(tomcat编码格式与控制台不同情况下,控制台报错信息乱码)
问题:控制台编码是GBK,tomcat编码是utf-8,当出现报错时,报错信息的汉字部分乱码解决:修改tomcat的编码格式为GBKtomcat--conf--logging.properties找到语句:java.util.logging.ConsoleHandler.encoding=UTF-8改为:java.util.logging.ConsoleHandler.encoding=GBK...原创 2021-04-03 00:38:03 · 247 阅读 · 0 评论 -
java.lang.ClassNotFoundException: com.mysql.cj.jdbc.Driver
Caused by: java.lang.ClassNotFoundException: com.mysql.cj.jdbc.Driver和com.alibaba.druid.pool.DruidDataSource.error {dataSource-1} init errorjava.sql.SQLException: com.mysql.cj.jdbc.DriverSLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder"..原创 2021-03-31 12:59:58 · 1149 阅读 · 0 评论 -
Exception in thread “main“ java.lang.NoClassDefFoundError: net/sf/json/JSONObject
在java与json转换时出现这个异常,这边的情况是jar没导入正确,重新导入后就好了主要是json-lib这个工具,其它都是相关jar原创 2021-03-16 20:55:48 · 672 阅读 · 0 评论 -
配置项目虚拟路径为/
在新版本IDEA中引入别人的项目,启动服务器跳转的页面显示找不到原创 2021-03-15 09:23:42 · 105 阅读 · 0 评论 -
读取txt文件乱码
获取txt文件流的时候设置编码原创 2021-03-14 15:43:53 · 195 阅读 · 0 评论