transition.s1=s2,s5
transition.s2=s4,s1
...................
public class StateGraph {
public StateGraph(Map
sspath:props.properties"/>
请注意,Spring将完成所有the required generic type conversions
If you are using Java 5 or Java 6,you will be aware that it is
possible to have strongly typed collections (using generic types).
That is,it is possible to declare a Collection type such that it can
only contain String elements (for example). If you are using Spring to
dependency inject a strongly-typed Collection into a bean,you can
take advantage of Spring’s type-conversion support such that the
elements of your strongly-typed Collection instances will be converted
to the appropriate type prior to being added to the Collection.
如果您使用的是编程配置,那么您必须自己在@Configuration类中执行此操作 – 请参阅Converting java.util.Properties To HashMap
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。