开发者

How can Guice annotated injections be converted to Spring dependency injection

开发者 https://www.devze.com 2023-04-07 16:49 出处:网络
I set up this binding with Guice bindConstant().annotatedWith( SecurityCookie.class ).to(\"JSESSIONID\");

I set up this binding with Guice

bindConstant().annotatedWith( SecurityCookie.class ).to("JSESSIONID");

I need to migrate to Spring. What would be the e开发者_运维知识库quivalent code with Spring ?


Use FieldRetrievingFactoryBean.

0

精彩评论

暂无评论...
验证码 换一张
取 消