- 博客(14)
- 收藏
- 关注
原创 泛型与反射
一.泛型是jdk1.5提出来的,它的好处:1.是避免频繁的类型转换,2.把运行时异常提前到编译时,换句话说可以在编译时期进行类型检查。public class Demo1 {private T t; public T add(T t){ return t; } public void save(List p){}public T save1(L
2017-05-10 14:00:28 310
转载 HTML中Div、span、label标签的区别
div与span大家在初学div+css布局时,有很多困惑,在div与span的使用过程没觉得有一定的”章法”,觉得两个区别不大,在w3c的关于div和span的定义:div作为分割文档结构自然使它最官方的语义,但是这样的官方语义太让人迷惑,大的结构还好,但是小的地方到底是用div还是用span仍然让人迷惑。其实恰恰是《Microsoft MSDN Library》里面的定义让人豁
2017-05-02 13:23:32 449
原创 java.lang.Exception: No tests found matching
java.lang.Exception: No tests found matching [{ExactMatcher:fDisplayName=fun3], {ExactMatcher:fDisplayName=fun3(day27.Demo2)], {LeadingIdentifierMatcher:fClassName=day27.Demo2,fLeadingIdentifier=fun3]
2017-04-29 18:37:15 1687
原创 com.sun.mail.smtp.SMTPSendFailedException: 554 DT:SPM 163 smtp10,DsCowABX3qJtagRZBXMsBA--.8416S2 149
com.sun.mail.smtp.SMTPSendFailedException: 554 DT:SPM 163 smtp10,DsCowABX3qJtagRZBXMsBA--.8416S2 1493461613,please see http://mail.163.com/help/help_spam_16.htm?ip=220.170.199.39&hostid=smtp10&time=14
2017-04-29 18:29:29 9350
原创 com.sun.mail.smtp.SMTPSendFailedException: 553 authentication is required,163 smtp9,DcCowACnMFm7ZwRZ
com.sun.mail.smtp.SMTPSendFailedException: 553 authentication is required,163 smtp9,DcCowACnMFm7ZwRZnp_OAg--.17038S2 1493460923at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.j
2017-04-29 17:30:56 8773
原创 一般导入的包有问题
java.lang.Exception: No tests found matching [{ExactMatcher:fDisplayName=fun1], {ExactMatcher:fDisplayName=fun1(day27.Demo2)], {LeadingIdentifierMatcher:fClassName=day27.Demo2,fLeadingIdentifier=fun1]
2017-04-28 21:48:04 308
转载 sun.misc.BASE64Encoder找不到jar包的解决方法
1.右键项目-》属性-》Java bulid path-》jre System Library-》access rules-》resolution选择accessible,下面填上** 点击确定即可!!!2.在MyEclipse中编写Java代码时,用到了BASE64Decoder,import sun.misc.BASE64Decoder;可是Eclipse提示: Acc
2017-04-28 16:59:06 514
原创 java.lang.ClassNotFoundException
严重: Servlet.service() for servlet [servlet.Demo2] in context with path [/day27] threw exception [Servlet execution threw an exception] with root causejava.lang.ClassNotFoundException: org.apache.com
2017-04-28 15:20:07 1277
原创 filter配置文件错误,导致无法找到
Exception starting filter StaticFilterjava.lang.ClassNotFoundException: day26_1.web.StaticFilterat org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1720)at org.apach
2017-04-27 21:48:44 4093
转载 jsp
c:set标签有两种不同的设置:var和target。var“版本”用于设置作用域属性,target“版本”用于设置bean属性或Map值。这两个版本都有两种形式:有体和没有体。有体的只是放入值的另一种途径。★ var“版本” Sheriff, Bartend
2017-04-24 19:16:39 213
原创 严重: Allocate exception for servlet CustomerServlet java.lang.ClassNotFoundException: cn.itcast.cstm.
严重: Allocate exception for servlet CustomerServletjava.lang.ClassNotFoundException: cn.itcast.cstm.servlet.CustomerServletat org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoade
2017-04-22 18:53:35 6914
转载 MyEclipse查看jar包源代码乱码问题解决
步骤1、在MyEclipse菜单栏中,Window–>Preferences–>General–>Content types将JAR Content , Java Class File 的Default encoding都设置为你要的编码。步骤2、光设置上面的还不行,还需要再设置Workspace的编码。Window–>Preferences–>Genera
2017-04-22 17:33:06 351
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人