常用java学习资料(持续更新) 1、shiro学习资料跟我学Shiro:https://www.iteye.com/blogs/subjects/shiro作者博客地址:https://jinnianshilongnian.iteye.com/
常见JavaWeb开发问题记录(持续更新) 1、maven中jdk版本配置:http://www.blogjava.net/fancydeepin/archive/2015/06/23/maven-jdk.html
Spring Data JPA、 MyBatis与Hibernate到底该用谁 数据库持久层,这三者是主流,这三者到底有什么区别和优略呢?一、技术简述1、Spring Data JPA与HibernateSpring Data JPA是Spring Data的子模块。使用Spring Data,使得基于“repositories”概念的JPA实现更简单和容易。Spring Data JPA的目标是大大简化数据访问层代码的编码。作为使用者,我们只需要编写自己的rep...
jsp中引入jquery、css样式失效问题 一、出现的问题原本想在jsp页面中引入style.css,而style.css中使用@import "jquery.mCustomScrollbar.css";引入jquery.mCustomScrollbar.css但是访问jsp页面时,发现jquery.mCustomScrollbar.css并没有引入,导致页面中的元素跟其他元素重合。(1)目录结构如下:(2)jsp页面如...
Java.lang.String.contains() 方法 一、使用示例public class StringDemo { public static void main(String[] args) { String str1 = "my point", str2 = "javaee"; CharSequence cs1 = "int"; // "my point"包含"int" ...
使用maven的tomcat插件中文编码问题 一、问题描述:使用maven的tomcat插件来运行和部署项目,出现错误如下:1.maven插件配置如下 <plugin> <groupId>org.apache.tomcat.maven</groupId> <artifactId>tomcat7-mave...
java位运算之——有符号右移>>,无符号右移>>> 计算机表示数字正负不是用+ -加减号来表示,而是用最高位数字来表示,0表示正,1表示负1.有符号右移>>(若正数,高位补0,负数,高位补1)正数:例如4>>2首先写出4的二进制数,因为是正数所以最高位为0,也就是第一个0000 0000 0000 0000 0000 0000 0000 0100右移两位得到(高位补0)000000 0000 0000...
java中Arrays.fill()方法的使用 Arrays.fill()函数用法1:接受2个参数Arrays.fill( a1, value );注:a1是一个数组变量,value是一个a1中元素数据类型的值,作用:填充a1数组中的每个元素都是value例如:boolean[] a1 = new boolean[5];Arrays.fill( a1,true );结果 a1[] = {true,true,true,true,t...
用maven来搭建并使用mybatis-generator 一、配置项目的pom.xml <plugins> <plugin> <groupId>org.mybatis.generator</groupId> <artifactId>mybatis-generator-maven-plugi...
常用软件及工具下载(不定时更新) 一、nexus私服下载下载链接:https://sonatype-download.global.ssl.fastly.net/nexus/oss/nexus-2.14.2-01-bundle.zip二、Mybatis-Generator插件下载https://pan.baidu.com/s/1ASx5Jv3gsGUXuVkEYU4YGwmyeclipse安装mybatis插件—安...
Non-resolvable parent POM for xxx [unknown-version]解决方案 问题描述:[ERROR] [ERROR] Some problems were encountered while processing the POMs:[FATAL] Non-resolvable parent POM for xxx.xxx:xxx-web2:[unknown-version]: Could not find artifact xxx:xxx-parent:pom:...
maven报错:Failure to transfer xxx.jar from xxx was cached in the local repository. 出错信息:Failure to transfer org.codehaus.plexus:plexus-archiver:jar:2.0.1 from http://repo.maven.apache.org/ maven2 was cached in the local repository, resolution will not be reattempted until the upd...
福昕阅读器中删除单个,多个注释,隐藏所有注释。 一直使用foxit(福昕阅)读器阅读pdf文档,主要是福昕阅读器轻巧又没广告(右上角的广告可以在设置中选择是否显示,就喜欢这人性化的设置)。最近升级到了7.0,感觉比以前更好用了,那界面估计是借(chao)鉴(xi)office的吧,呵呵。。。还是希望福昕阅读器越做越好。但这近下载了本pdf书,里面全是注释,太影响阅读了。一般有问题,第一件事就是找度娘(小问题嘛,就不去麻烦谷哥了)...
Maven运行报错:-Dmaven.multiModuleProjectDirectory system propery is not set. 转载自:http://blog.csdn.net/sd4015700/article/details/44827327eclipse中使用maven插件的时候,运行run as maven build的时候报错-Dmaven.multiModuleProjectDirectory system propery is not set.Check $M2_HOME environment v...
Java Native Method 一. 什么是Native Method简单地讲,一个Native Method就是一个java调用非java代码的接口。一个Native Method是这样一个java的方法:该方法的实现由非java语言实现,比如C。这个特征并非java所特有,很多其它的编程语言都有这一机制,比如在C++中,你可以用extern "C"告知C++编译器去调用一个C的函数。"A native method i...
java HotSpot 1. HotSpot历史SUN的JDK版本从1.3.1开始运用HotSpot虚拟机, 2006年底开源,主要使用C++实现,JNI接口部分用C实现。HotSpot是较新的Java虚拟机,用来代替JIT(Just in Time),可以大大提高Java运行的性能。Java原先是把源代码编译为字节码在虚拟机执行,这样执行速度较慢。而HotSpot将常用的部分代码编译为本地(原生,native)...
Myeclipse中debug Web项目时,出现Edit the Source lookup path 一、问题描述和显示:二、出现错误的根本原因:没有该类的source文件,DispatcherServlet属于org.springframework.web.servlet.DispatcherServlet必须引入spring-webmvc-4.3.3.RELEASE-sources.jar三、解决办法(1)下载缺少的源码包。下载地址:http://repo...
Result Maps collection already contains value for xxxMapper.BaseResultMap错误解决办法 Result Maps collection already contains value for xxxMapper.BaseResultMap错误解决办法一、问题描述今天在做项目时,遇到一个错误:“Result Maps collection already contains value for com.xxx.dao.tb_userMapper.BaseResultMap”二、原...
myeclipse中try-catch快捷键 myeclipse中try-catch快捷键方式1、全选代码块:alt+shift+z 再输入 t 选择try-catch,enter确定方式2、全选代码块:alt+/ 再输入try,选择try-catch,enter确定...
MyEclipse和eclipse生成变量快捷键 MyEclipse和eclipse生成变量快捷键一、MyEclipse快捷生成变量(两种):第一种:光标放在该行的任意位置,按 Ctrl+2,会弹出提示,根据提示选择F/L/R,自动生成变量。F:生成全局变量L:生成局部变量第二种:光标只能放在“request.getParameter(“username”);”的行末尾,按 Shift+Alt+L,填入变量名,自动生成。...