
实习笔记
飞来的贼
一直在填坑的java填坑师
展开
-
Error creating bean with name 'handlerMapping'
报错原因@GetMapping@PostMapping@PutMapping@DeleteMapping注解的引入解决方法1.可以更改spring-web的版本在4.2以上2.用一下代码代替@RequestMapping(value = { "/put" }, method = { org.springframework.web.bind翻译 2017-11-06 22:14:58 · 5828 阅读 · 0 评论 -
数据库异常总结+++++
Duplicate entry 'xa' for key 'UNQ_BUDGET_CODE'NQ 唯一性约束 。不能有重复数据Cannot add or update a child row: a foreign key constraint fails外键约束,需要在主键表添加数据No database selected Select the default DB to原创 2017-11-06 22:19:06 · 2504 阅读 · 0 评论 -
一周两个任务的总结
1.首先最致命的一点就是,定义问题把带我们的老哥让我做一个接口。我却真的想成了接口(Interface) 以后一定要明白他们说的接口是web的Contrller层2.了解框架的基本运行流程。因为上一个项目是SpringMVC的基本上大部分配置都被注解代替,确实很方便但是疏忽了运行的机制。导致后来任务就主观臆断起来,甚至没有把service类装入IOC容器就直接拿来用,而且我还是懂基本配原创 2017-12-03 23:27:50 · 216 阅读 · 0 评论 -
tomcat项目依附
apache-tomcat-7.0.61\conf\Catalina\localhost该目录下有一个项目所依附的配置文件XML的。翻译 2017-12-26 10:26:22 · 286 阅读 · 0 评论 -
Integer的常量池数据比较
1.5jdk一下*****************Integer a = 100; 不相当于 Integer a = value.of(100);Integer a = value.of(127);//(-128 - 127)Integer b= value.of(127);//(-128 - 127)System.out.print(a==b);System.out.print(...原创 2018-10-23 18:38:11 · 644 阅读 · 0 评论