最贊回答 / 淺笑若風
first : 記住最基本的注解 @Controller 、 @Entity、@Service 、 ?@Component 、 這四個各分別是控制器類注解、實體類注解、方法服務類注解、組件類注解second: 記住在上面四個注解中前面加上一個REST變成了rest風格的注解@RestController,@RestEntity、@RestService .....................這一系列注解能能夠自動裝配能力,能簡化注解。third:就是在各種類中的注解了,比如Controller 中的@...
2017-07-30
已采納回答 / qq_柳_3
java.lang.Object是java 1.0開始的一個類,是所有class的最頂層的基類。所有的對象包括數組,都集成它。java.util.Objects是java1.7開始的一個類,該類是一個工具類,提供了靜態方法來操作Object對象。
2017-07-30
已采納回答 / cn_lxf3174584
?Annotation-specified bean name 'helloController' for bean class [com.imooc.HelloController] conflicts with existing, non-compatible bean definition of same name and class [com.imooc.controller.HelloController];報錯已經說了,你看看你這兩個,名字相同了,com.imooc.HelloControll...
2017-07-26
已采納回答 / mjka5632
int是java基本數據類型,Integer是int的包裝類。Integer使用需要被實例化,int不需要(也就是說Integer是對象,int不是)Integer的默認值null,int的默認值為0
2017-07-11