logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

Request processing failed; nested exception is org.springframework.web.multipart.MultipartException:

今天在用SpringMVC做一个上传文件的模块的时候,出现:org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.web.multipart.MultipartException: Current reques..

C#使用log4net进行多日志文件的配置以及自定义路径的配置文件读取

在使用log4net的时候,编写的配置文件,有时候我们可能需要放在其它路径下面,而是不是用默认的App.config,这时候,只需要在AssemblyInfo.cs里面添加一行代码即可:[assembly: log4net.Config.XmlConfigurator(ConfigFile = "xxx.config",Watch = true)]上一篇博...

MyBatis的学习(二)——MyBatis事务核心对象及配置

一、获取SqlSession对象MyBatis框架中涉及到的几个APISqlSessionFactoryBuilder:该对象负责根据MyBatis配置文件mybatis-config.xml构建SqlSessionFactory实例  负责生产sessionSqlSessionFactory:每一个MyBatis的应用程序都以一个SqlSessionFactory对象为核心。该对象负...

Activiti的学习(二)——核心API及Activiti的HelloWorld程序

一、核心API①ProcessEngine对象 流程引擎对象说明:1) 在Activiti中最核心的类,其他的类都是由他而来。2) 产生方式ProcessEngine processEngine = ProcessEngines.getDefaultProcessEngine();3)可以产生RepositoryServiceRepositoryService repo...

Python报错:AttributeError: ‘list‘ object has no attribute ‘item‘

运行python程序出现:AttributeError: 'list' object has no attribute 'item'。这里主要是指找不到某个参数,查看python的包:pip list,查看marshmallow的版本,我这里是因为版本太低,是2.18.0,重新下载pip installmarshmallow==3.7.0,然后问题解决。marshmallow是用作序列化的包,版本

#python
Python读取redis数据含有‘b‘

使用Python读取redis数据的时候,取出来的数据带有'b',也就是是bytes类型的:解决办法,在连接redis数据库时,多加个参数:decode_responses=Trueself.redis = redis.Redis(host=RedisConfig.redis_host, port=RedisConfig.redis_port, db=0, decode_responses=Tru

#python#redis
到底了