
ssh
爆发的~小宇宙
github地址:https://github.com/ordinary-zhang?tab=repositories
展开
-
ssh框架中遇到的问题
严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerorg.springframework.beans.factory.BeanCreationException: Error crea原创 2017-08-24 11:09:53 · 1144 阅读 · 2 评论 -
ssh框架
八月 23, 2017 8:26:33 下午 org.apache.catalina.core.StandardContext listenerStart严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoad原创 2017-08-23 20:31:22 · 1131 阅读 · 0 评论 -
ssh框架中对文件的上传
. 添加文件上传的选择项1. 客户端三个注意事项* method="post"* enctype="multipart/form-data"* 2. Struts2框架的使用拦截器完成了文件上传,并且底层使用也是FileUpload开源的组件。* 提供 FileUpload 拦截器,用于解析 multipart/form-data 编码格式请求,解析上传文件的内容原创 2017-09-14 20:30:33 · 2468 阅读 · 0 评论 -
ssh框架栈溢出异常
/-- Encapsulated exception ------------\java.lang.StackOverflowErrorat com.alibaba.fastjson.serializer.SerializeWriter.writeStringWithDoubleQuote(SerializeWriter.java:758)at com.alibaba.fastjson原创 2017-09-07 15:17:23 · 2155 阅读 · 0 评论 -
ssh框架中的错误:com.mysql.jdbc.MysqlDataTruncation: Data truncation: Data too long for column 'user_name'
com.mysql.jdbc.MysqlDataTruncation: Data truncation: Data too long for column 'user_name' at row 1启动服务器都没有报错,当我执行方法时却报错;原因:编码的问题,因为我在配置category.hbm.xml的时候把主键的生产策略写成uuid了(uuid:适用于char,varchar类型的作原创 2017-08-30 17:16:15 · 8943 阅读 · 0 评论 -
java.sql.SQLException: Field 'id' doesn't have a default value
自增长:java.sql.SQLException: Field 'id' doesn't have a default value 今天用Java程序向MySQL数据库中进行数据记录的时候,用的id自增长时,报了异常java.sql.SQLException: Field 'id' doesn't have a default value错误,看了一篇博文,决定按他的方法试试。:其转载 2017-08-30 17:23:03 · 824 阅读 · 0 评论 -
ssh框架org.springframework.dao.InvalidDataAccessApiUsageException错误
org.springframework.dao.InvalidDataAccessApiUsageException: Write operations are not allowed in read-only mode (FlushMode.MANUAL): Turn your Session into FlushMode.COMMIT/AUTO or remove 'readOnly' mar原创 2017-09-11 21:17:00 · 5577 阅读 · 0 评论 -
ssh框架中ajax对用户名查重的代码
1 form表单 2 ajax代码$(function(){//给username派发一个失去焦点事件 发送ajax请求$("input[name='username']").blur(function(){//获取输入的值var $value=$(thi原创 2017-09-12 21:39:15 · 1227 阅读 · 0 评论 -
shell 脚本常用命令
#读取当前文件目录path=$(cd `dirname $0`;pwd)#修改hosts文件hostname_1=`sed '/^hostname_1=/!d;s/.*=//' $path/tag-server.config`ip_1=`sed '/^ip_1=/!d;s/.*=//' $path/tag-server.config`hostname_2=`sed '/^hostna...原创 2019-09-07 10:06:26 · 493 阅读 · 0 评论