![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java随手
DevoLee
变强加不秃头
展开
-
java文件编码转换
前几天下了几个项目,每次导入到自己的工作空间,中文就会乱码,按照百度设置了几次编码,但结果并不如人意。索性就自己编写一个可以gbk和utf-8互转的java程序。目前只实现了java后缀名的文件转换,后期有时间会将其进行改进。下面贴出主要代码供大家参考。更新说明:增加了jsp。xml文件的转码,bug说明;utf-转gbk文字前面会出现问号,暂时没解决 package com.suse.chu...原创 2018-07-25 15:15:23 · 1547 阅读 · 0 评论 -
数据库问题(一)
check the manual that corresponds to your MySQL server version for the right syntax to use near 'comment '账户', password varchar comment '密码' 从varchar后面开始报错,并且后面语句并没有错误 出现这种情况是varchar没有定义大小 ...转载 2019-03-10 21:03:36 · 247 阅读 · 0 评论 -
新建ssm框架遇到Artifact hisports:war exploded: Error during artifact deployment. See server
在启动tomcat后,出现Artifact hisports:war exploded: Error during artifact deployment. See server错误 也许是web-info里没有application.xml文件或者是web.xml里未指定applicationContext.xml位置 如果在上下文中没有指定contextConfigLoction配置文件的...转载 2019-03-13 16:49:03 · 6920 阅读 · 0 评论 -
上传图片遇到current request is not a multipart request错误
解决方法: 1.html内容中需要添加 <meta http-equiv="Content-Type"; content="multipart/form-data; charset=utf-8"/> 2.form表单需要添加 enctype="multipart/form-data" 3.提交方式要为post,文件上传不接受为get 感谢CSDN各位大佬的文章,因...转载 2019-04-14 16:28:25 · 9301 阅读 · 0 评论