2019年9月26日
摘要: 不想规范格式,好困想睡觉,没写原因,以后有机会慢慢补充(我猜没机会) 欢迎补充解决方法 1. Request method 'POST' not supported 解决:错误的适用POST去请求GET一类的方法; 查看controller,@RequestBody使用post,@RequestPa 阅读全文
posted @ 2019-09-26 23:07 theLazarus 阅读(299) 评论(0) 推荐(0) 编辑
  2018年6月29日
摘要: 如果可以帮你解决问题,欢迎点一个推荐,虽然没啥用,就当一个统计,反正比评论方便多了 项目启动出现“Unable to locate Spring NamespaceHandler for XML schema namespace……” Spring 启动时提示名称空间处理程序没有找到 思路:这种问题 阅读全文
posted @ 2018-06-29 09:49 theLazarus 阅读(4222) 评论(0) 推荐(1) 编辑
  2017年9月15日
摘要: import jar包出错,并且无法导入。 提示:打开jar包提示invalid LOC header (bad signature) 原因:maven下载jar包出错 解决: 1. 删除jar包,重新下载。 2. eclipse菜单 Window Preferences Java Installe 阅读全文
posted @ 2017-09-15 11:16 theLazarus 阅读(192) 评论(0) 推荐(0) 编辑
  2017年7月23日
摘要: 面试总结 1. Collection集合接口 1.1 Collection接口 是最基本的接口,派生了两个子接口Set和List 1.2 Set接口 无序且不可重复 1.2.1 HashSet接口 基于HashMap实现,所有元素都是保存在HashMap的key中,而value中保存了PRESENT 阅读全文
posted @ 2017-07-23 15:41 theLazarus 阅读(362) 评论(0) 推荐(0) 编辑
  2017年7月7日
摘要: 在JDK1.7后,switch case支持String类型参数, 但是我在使用IDEA时,出现了问题,提示case不支持String。 但我在项目结构中选择的是JDK1.8版本, 后来发现,在左侧的Project视图的根目录中,` 项目名.iml `文件中的 这里显示JDK1.5。 解决方法: F 阅读全文
posted @ 2017-07-07 17:44 theLazarus 阅读(1409) 评论(0) 推荐(0) 编辑
  2017年7月5日
摘要: 当使用@Autowired注解的属性类型为接口(接触耦合),这个接口有两个以上的实现类时,为了区分注入的是哪一个实现类,使用@Qualifier指定 CarIn接口: 实现类Car1: 实现类Car2: Boss类: ApplicationContext.xml: 测试类: 阅读全文
posted @ 2017-07-05 23:18 theLazarus 阅读(315) 评论(0) 推荐(0) 编辑
  2017年6月29日
摘要: applicationContext.xml配置database时出现错误 1. 2. 解决方法: 1. mysqlURL在高版本需要指明是否进行SSL连接,在MySQL连接字符串url中加入ssl=true或者false即可 2. URL后添加添加&serverTimezone=UTC 解决后如下 阅读全文
posted @ 2017-06-29 17:08 theLazarus 阅读(335) 评论(0) 推荐(0) 编辑
  2017年6月5日
摘要: 在IDEA中,resources文件夹存放各类资源配置文件,java文件夹只用来存放java文件。 如果将.xml或.properties文件放在java目录下将提示无法找到资源文件Could not find resource 阅读全文
posted @ 2017-06-05 14:37 theLazarus 阅读(1020) 评论(0) 推荐(0) 编辑
  2017年6月3日
摘要: MyBatis显示错误: 原因: 关系映射文件的命名空间出错 `` 应命名为接口地址: `` 阅读全文
posted @ 2017-06-03 21:22 theLazarus 阅读(495) 评论(0) 推荐(0) 编辑
  2017年5月31日
摘要: Incorrect table definition;there can be only one auto column and it must be defined as a key 设为自增的字端需要设置为主键 阅读全文
posted @ 2017-05-31 18:17 theLazarus 阅读(4146) 评论(0) 推荐(0) 编辑