趟过的坑
cj_ervin
这个作者很懒,什么都没留下…
展开
-
填坑:Spring-Boot项目导包坑之spring-boot-starter-parent
在新建springboot项目引入RELEASE版本时,有几率从远程仓库下载jar包出错,导致jar包无法导入.即使我把相关的包都删完,都不行,要么换个仓库,要么换个版本.下面给出两个解决方法。 <parent> <groupId>org.springframework.boot</groupId> <artifactId>sprin...转载 2020-03-02 17:32:41 · 745 阅读 · 0 评论 -
Java后端取前端传递的参数时中文乱码
处理的方式有:1、直接在后台代码进行处理:String id = new String(str.getBytes(“ISO8859-1”), “utf-8”)。2、修改tomcat的server.xml文件,增加URIEncoding配置:&amp;lt;Connector port=&quot;8080&quot; protocol=&quot;HTTP/1.1&quot; connectionTimeout=&原创 2018-10-24 15:33:52 · 1922 阅读 · 0 评论 -
The JRE could not be found.Edit the server and change the JRE location.
之前更改了了一个较低的jdk的版本看了看一个项目的代码,不知所云,然后再改回来,混乱之中只要启动Tomcat就出现这种错误,还是无法找到JRE,最后如此解决:在Windows-&gt;Preferences-&gt;Server-&gt;Runtime Environments选择Tomcat-&gt;Edit,在jre中选择相应的jdk版本,完事。转自:http://www.cnblog...转载 2018-11-14 10:38:34 · 229 阅读 · 0 评论 -
struts中使用json,报错There is no result type defined for type 'json' mapped with name 'success'.
Unable to load configuration. - action - file:/E:/eclipseCode/.metadata/.plugins/org.eclipse.wst.server.core/tmp2/wtpwebapps/ZXBServer12.13/WEB-INF/classes/config/struts_invoiceInfo.xml:24:23 at org....原创 2018-12-22 15:21:16 · 273 阅读 · 0 评论