- 862 名前:デフォルトの名無しさん [2006/10/31(火) 20:38:16 ]
- ↓の記事だけどさ、動かなかったんだよね。
ttp://journal.mycom.co.jp/articles/2006/10/26/annotation/ そんでさ、インスタンスをサ、createBeanで作ってやったワケよ。 とりあえずサ、動くこと確認してから記事にしろと言いたいわけ。 ソースまで追っかけさせんナ。ヽ(`Д´)ノウワァン TOAnnotationXmlApplicationContext ctx = new TOAnnotationXmlApplicationContext("classpath*:applicationContext.xml"); ConfigurableListableBeanFactory factory = ctx.getBeanFactory(); //createBeanの第2引数の0とか1とか2とかね、第3引数のtrue, falseとかね。ヘ(゚∀゚ヘ)アヒャ TargetBean bean = (TargetBean)factory.createBean(TargetBean.class, 1, true); bean.xxx(); プログラムは漏れの本業じゃないのに…。 烏賊にも動きました的な記事は要らんよ。検証してから書けや! spring-annotation 試したヤシ、居る?
|

|