
bug之旅
chaos_le
这个作者很懒,什么都没留下…
展开
-
对实体 "XX" 的引用必须以 ';' 分隔符结尾
访问页面时后台报错: 对实体 "XX" 的引用必须以 ';' 分隔符结尾(1)解决方案在变量"XX" 前加上“amp;”即可。(2)举例页面中含有如下a标签:<a href="https://www.svd.com/dao/authorize?response=code&client=341343" class="btn btn-primary btn-bloc...转载 2018-08-03 18:22:05 · 9849 阅读 · 2 评论 -
发送get请求报错: java.net.URISyntaxException: Illegal character in scheme name
当使用HttpGet发送xxx.xxx.xxx.xxx:2070//common_score_api.php?UserResources=[{"dataColumn":"yearmonth","dbName":"house","id":8,"tableName":"personal_wide_vars","uid":50}]&f原创 2018-08-06 10:42:10 · 1230 阅读 · 0 评论 -
spring boot实现txt下载
示例代码如下(Service层) public void downloadTXT(HttpServletResponse response) { String fileName = "fileName" + ".txt"; String content = "写入txt的内容"; response.setContentTyp...原创 2018-08-20 15:09:18 · 5296 阅读 · 1 评论 -
解决一对多 多对多关系的循环查询导致stackOverFlow问题
有两个多对多关系的实体类@Entitypublic class Station { private List<Customer> customerList; private ... ... @ManyToMany @JoinTable(name = "customer_station", catalog = "", schema = "...原创 2018-08-31 10:26:52 · 1840 阅读 · 0 评论 -
spring cache脱坑指南
1. 不要在抽象类(例如Repository)和接口中使用@Cache*注解。Spring Team recommends that you only annotate concrete classes (and methods of concrete classes) with the @Cache* annotation, as opposed to annotating int...原创 2018-08-21 15:37:33 · 3399 阅读 · 0 评论 -
MySQL8 的jdbc配置
1. 高版本的JDBC驱动,mysql-connector-java 8以上版本。 <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>8....原创 2018-09-03 16:21:20 · 14144 阅读 · 1 评论 -
tomcat部署多个项目的方式(不同端口)
以同个tomcat部署2个项目作为例子第一步:Tomcat默认空间webapps,中已经存在一个项目(myProject)了,此时要增加一个项目运行可以新建一个名为webapp1(或者其他看实际情况)的文件夹,然后加入你要部署的新项目(myProject1)。第二部:更改conf中的配置文件:server.xml<?xml version="1.0" encoding="U...原创 2018-09-18 17:18:25 · 8098 阅读 · 0 评论 -
将前端工程打成war包的方法
1.进入前端工程文件夹2.全选所有内容,将它们以zip格式压缩3.将压缩文件的后缀改为war原创 2018-12-06 09:03:25 · 10337 阅读 · 12 评论