摘要: 做一个通过JNDI查找资源的小练习,Context = new InitialContext(),发现NamingException异常,eclipse编辑器只有catch的提示,没有throws的提示,强行在doGet()方法后throws NamingException会报"Exception 阅读全文
posted @ 2017-04-22 22:19 孤剑者 阅读(408) 评论(0) 推荐(0) 编辑
摘要: spring配置文件头部信息主要是提供一个xml的编写规范作用。 新创建的配置文件引入头部信息后,编辑时没有提示信息,重启elipse即可解决。 阅读全文
posted @ 2016-11-12 22:10 孤剑者 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 今天准备写一个spring aop的demo,创建了TestBeforeAdvice类,该类实现了MethodBeforeAdvice接口,eclipse报了"The hierarchy of the type TestBeforeAdvice is inconsistent"的错误。 后百度找到原 阅读全文
posted @ 2016-11-12 21:33 孤剑者 阅读(423) 评论(0) 推荐(0) 编辑