写一个Shiro的过滤器 import cn.erika.demo.common.model.vo.Message; import com.alibaba.fastjson.JSON; import org.apache.shiro.SecurityUtils; import org.apache. ...
分类:
编程语言 时间:
2020-06-06 00:42:45
阅读次数:
77
这个问题找了好久,最后发现web.xml文件配置错了,如果遇到这样的问题可以先找web.xml文件检查一下 谨记谨记配置xml文件时候,地址中的 "/" 不能丢!! ...
分类:
Web程序 时间:
2020-06-05 23:22:19
阅读次数:
295
Exception in thread "main" java.sql.SQLException: The server time zone value '?й???????' is unrecognized or represents more than one time zone. You mu ...
分类:
数据库 时间:
2020-06-05 21:21:55
阅读次数:
146
包装器 异常处理的关键词 trya catch finally throw throws try{ }catch(Exception e){ } try{ }catch(Exception e){ } try(){ } try{ }catch(Exception e){ }catch(Excepti ...
分类:
编程语言 时间:
2020-06-05 20:46:30
阅读次数:
62
PHP中如何使用PDO修改数据? 首先进行连接数据库,将PDO对象进行实例化; 1 $dbms = 'mysql'; 2 3 $user = 'root'; 4 5 $pwd = '12345678'; 6 7 $dbName = 'ceshi'; 8 9 $host = 'localhost'; ...
分类:
Web程序 时间:
2020-06-05 17:58:53
阅读次数:
144
/** * 文件下载 * * @param response * @param file */ public static void downLoad(HttpServletResponse response, File file) { if (file.exists()) { response.s ...
分类:
其他好文 时间:
2020-06-05 15:04:54
阅读次数:
85
Mybatis 异常 报错信息: org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.type.TypeException: Could not set parameters for map ...
分类:
其他好文 时间:
2020-06-05 14:42:09
阅读次数:
46
Form介绍 我们之前在HTML页面中利用form表单向后端提交数据时,都会写一些获取用户输入的标签并且用form标签把它们包起来。 与此同时我们在好多场景下都需要对用户的输入做校验,比如校验用户是否输入,输入的长度和格式等正不正确。如果用户输入的内容有错误就需要在页面上相应的位置显示对应的错误信息 ...
分类:
其他好文 时间:
2020-06-04 21:58:30
阅读次数:
77
问题描述: 有 N 种物品和一个容量是 V 的背包,每种物品都有无限件可用。 第 i 种物品的体积是 vi,价值是 wi。 求解将哪些物品装入背包,可使这些物品的总体积不超过背包容量,且总价值最大。 输出最大价值。 输入格式 第一行两个整数,N,V,用空格隔开,分别表示物品种数和背包容积。 接下来有 ...
分类:
其他好文 时间:
2020-06-04 21:55:11
阅读次数:
72
今天遇到了这个错误:org.apache.ibatis.binding.BindingException: Invalid bound statement (not found),结果查询出来的办法如下: mybatis的xml文件的命名空间写错,命名空间应该是xml对应的数据接口类。 例如:类名是 ...
分类:
Web程序 时间:
2020-06-04 10:34:45
阅读次数:
100