07 2017 档案

spring注解方式 idea报could not autowire
摘要:在Idea的spring工程里,经常会遇到Could not autowire. No beans of 'xxxx' type found的错误提示。 但程序的编译和运行都是没有问题的,这个错误提示并不会产生影响。 造成原因是: spring auto scan配置,在编辑情况下,无法找不到对应的 阅读全文

posted @ 2017-07-28 15:09 默默红尘 阅读(385) 评论(0) 推荐(0) 编辑

值传递和引用传递
摘要:先看一段代码,是我遇到过的一道面试的笔试题: 1 /** 2 * ***面试题 3 */ 4 public class StringBufferTest { 5 public static void main(String[] args) { 6 int i = 10; 7 test(i); 8 S 阅读全文

posted @ 2017-07-13 16:17 默默红尘 阅读(277) 评论(0) 推荐(0) 编辑

Integer中1000==1000为false而100==100为true
摘要:1 /** 2 * Created by hunt on 2017/6/3. 3 */ 4 public class TestInteger { 5 public static void main(String[] args) { 6 Integer i1 = 100, i2 = 100; 7 Sy 阅读全文

posted @ 2017-07-13 16:03 默默红尘 阅读(825) 评论(0) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示