java
_蒹葭苍苍
Everyone has his own dreams.My dream is to be a computer programmer.I think it's very interesting and exciting for me to work on.With the development of science and technology,people can imagin and swim freely in the world ofcomputers.Computers have become good partners and friends in the daily life
展开
-
什么是类 ? 什么是对象 ? 类和对象有什么关系 ?
面向对象(Object Oriented,OO)。面向对象(Object Oriented,OO)是软件开发方法。面向对象的概念和应用已超越了程序设计和软件开发,扩展到如数据库系统、交互式界面、应用结构、应用平台、分布式系统、网络管理结构、CAD技术、人工智能等领域。面向对象是一种对现实世界理解和抽象的方法,是计算机编程技术[1]发展到一定阶段后的产物。核心特性包括:类,对象,方法,封装,继承...原创 2018-07-23 20:57:28 · 16005 阅读 · 0 评论 -
Java 基础知识大全(一)
以下是(博主)基础时 做的一些总结,希望能够对各位看官提供帮助,如有哪里整理思路不够明确又或者有错误,烦请指出,(博主)定当及时改正。谢谢大家Java学习方法先理解 记忆是重点1、抄笔记 2、多看书学习英语单词 计算机组成硬件Cpu 、硬盘、内存、显卡、网卡、主板、电源存取速度:寄存器>高速缓存>内存>硬盘只有硬盘可以永久存放数据,前...原创 2018-11-07 09:05:09 · 2275 阅读 · 0 评论 -
Java 基础知识大全(二)
流FileJava.io.File代表了计算机中的文件夹和文件。 boolean createNewFile() 当且仅当不存在具有此抽象路径名指定名称的文件时,不可分地创建一个新的空文件。 boolean delete() 删除此抽象路径名表示的文件或目录。 ...原创 2018-11-09 09:55:34 · 267 阅读 · 0 评论 -
比较一下Java 与 JavaScript
JavaScript 与Java是两个公司开发的不同的两个产品。Java 是原Sun Microsystems公司推出的面向对象的程序设计语言,特别适合于互联网应用程序开发;而JavaScript是Netscape公司的产品,为了扩展Netscape浏览器的功能而开发的一种可以嵌入Web页面中运行的基于对象和事件驱动的解释性语言。JavaScript的前身是LiveScript;而Java的前身是...原创 2018-10-18 13:22:01 · 260 阅读 · 1 评论 -
java.lang.NoSuchMethodException: 实体类.<init>()
造成次报错的原因是:实体类中没有无参构造方法,加上就可以了,如下:原创 2018-09-18 14:30:21 · 3505 阅读 · 0 评论 -
MyBatis数据映射及增删改查
SQL映射文件结构1. cache:1.1. 给定命名空间的缓存配置;2. cache-ref:2.2. 其他命名空间缓存配置的引用;3. resultMap:3.3. 是最复杂也是最强大的元素,用来描述如何从数据库结果集中来加载对象;4. sql:4.4. 可被其他语句引用的可重用语句块;5. nsert,update,delete,select:5.5....原创 2018-09-13 11:34:59 · 485 阅读 · 0 评论 -
MyBatis 简介
MyBatis是一个数据持久层(ORM)框架。把实体类和SQL语句之间建立了映射关系,是一种半自动化的ORM实现。MyBatis的优点:1. 基于SQL语法,简单易学。2. 能了解底层组装过程。3. SQL语句封装在配置文件中,便于统一管理及维护,降低了程序的耦合度。4. 程序调试方便。 MyBatis的发展历史:1. MyBatis 本是apache的一个开源项目...原创 2018-09-13 11:11:01 · 539 阅读 · 0 评论 -
Mapper method 'dao.xxx' has an unsupported return type
前后端分离,前端上传数据,后台一直报这个Mapper method 'dao.xxx' has an unsupported return type错误,后来才发现是不需要返回值结果的,把返回值类型改为void就行了,如果是添加等操作也可以改为int类型。...原创 2018-09-10 15:55:57 · 2583 阅读 · 1 评论 -
浅谈List与Map的区别
List:是存储单列数据的集合,存储的数据是有序并且是可以重复的 Map:存储双列数据的集合,通过键值对存储数据,存储 的数据是无序的,Key值不能重复,value值可以重复 key和value是一一对应的 关系 这张图简单揭示了Set、List与Map之间的相对关系。 Collection接口Collection是Java中最基本的集合接口。它描述了一组有关集合操作...原创 2018-09-10 11:30:47 · 10370 阅读 · 0 评论 -
Java 中的异常处理机制的简单原理和应用
异常是指 java 程序运行时(非编译)所发生的非正常情况或错误,与现实生活中的事件很 相似,现实生活中的事件可以包含事件发生的时间、地点、人物、情节等信息,可以用一个 对象来表示,Java 使用面向对象的方式来处理异常,它把程序中发生的每个异常也都分别封 装到一个对象来表示的,该对象中包含有异常的信息。 Java 对异常进行了分类,不同类型的异常分别用不同的 Java 类表示,所有异常的根类为 ...原创 2018-11-05 08:38:09 · 912 阅读 · 0 评论