문제

Is it possible to have a variable that is string list via the Context.xml file? For example, I'm currently doing this in my context.xml file:

    <Environment name="actiontypes" value="INSERT,DELETE,UPDATE,INITIAL" type="java.lang.String" />

I read that into a tokenizer and break it down by comma delimited. Anyway I could just store this straight as an array or list?

도움이 되었습니까?

해결책

There is no direct way of storing into list for values. But as alternative to tokenizer you can simplify like this

String[] values = value.split(",")

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top