Person person1=★ context.getBean("myPerson");
五星處很顯然缺一個強轉 (Person) 它會出一個轉換的提示
問:強轉的快捷鍵是什么?????

chenshouyin
2014-10-18
3 回答
舉報
0/150
提交
取消
2016-05-26
強制轉換:ctrl+1
2014-10-20
方向鍵移動光標到需要強轉的代碼上,然后回車
2014-10-18
Person person1=(Person)context.getBean("myPerson");