文件操作 文件操作的内容流程 计算机系统分为计算机硬件,操作系统,应用程序三部分。 ? 编写的应用程序若想要把数据永久保存下来,必须要保存于硬盘中,这就涉及到应用程序要操作硬件,但应用程序是无法直接操作硬件的,这就用到了操作系统。操作系统把复杂的硬件操作封装成简单的接口给用户/应用程序使用,其中文件 ...
分类:
其他好文 时间:
2020-07-20 13:20:29
阅读次数:
62
{"msg":"Could not marshal [ResultVo [code=100, result=null, message=ok, exception=null, data=null]]: null; nested exception is javax.xml.bind.MarshalException\n - with linked exception:\n[com.sun.istack.SAXException2: unable to marshal type \"com.domain.ResultVo\" as an element because it is missing an @XmlRootElement annotation]","errorcode":2}
分类:
其他好文 时间:
2020-07-20 11:05:43
阅读次数:
87
我们在web.xml中配置servlet的时候会有个属性<load-on-startup></load-on-startup>,这里主要记一下它的作用,源码在后续记得好好看一下。 The load-on-startup element indicates that this servlet shou ...
分类:
Web程序 时间:
2020-07-20 10:48:39
阅读次数:
83
<resultMap>、<parameterMap>、<sql>、<include>、 <selectKey>,加上动态 sql 的 9 个标签,其中<sql>为 sql 片段标签,通过 <include>标签引入 sql 片段,<selectKey>为不支持自增的主键生成策略标 签。 ...
分类:
其他好文 时间:
2020-07-20 10:47:03
阅读次数:
90
public static string GetJsonValue(string jsonStr, string key) { string result = string.Empty; if (!string.IsNullOrEmpty(jsonStr)) { key = "\"" + key.T ...
分类:
Web程序 时间:
2020-07-20 10:46:46
阅读次数:
89
一、正常乱码过滤器 web.xml <filter> <filter-name>encoding</filter-name> <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class> <in ...
分类:
编程语言 时间:
2020-07-20 10:45:28
阅读次数:
79
1、第一种: DAO 层的函数 public UserselectUser(String name,String area); 对应的 xml,#{0}代表接收的是 dao 层中的第一个参数,#{1}代表 dao 层中第二 参数,更多参数一致往后加即可。 <select id="selectUser ...
分类:
移动开发 时间:
2020-07-20 10:43:32
阅读次数:
114
ajax: 1、什么是ajax Ajax是对原生XHR的封装,为了达到我们跨越的目的,增添了对JSONP的支持。 异步的javascript和xml,ajax不是一门新技术,而是多种技术的组合,用于快速的创建动态页面,能够实现无刷新更新数据从而提高用户体验。 2、ajax的原理? 由客户端请求aja ...
分类:
移动开发 时间:
2020-07-19 23:50:42
阅读次数:
151
打开当前工程所在目录,在.idea中的workspace.xml文件在其中添加下面的代码即可. <option name="configurationTypes"> <set> <option value="SpringBootApplicationConfigurationType" /> </s ...
分类:
其他好文 时间:
2020-07-19 23:19:38
阅读次数:
85
问题原因: 高版本的JDK中不包含javax.xml.bind包了! 解决方法: 1,如果是maven管理依赖,则在pom.xml中加入: <dependency> <groupId>javax.xml.bind</groupId> <artifactId>jaxb-api</artifactId> ...
分类:
编程语言 时间:
2020-07-19 18:01:33
阅读次数:
144