Splitting String with delimiter

后端 未结 6 1664
死守一世寂寞
死守一世寂寞 2021-01-30 15:35

I am currently trying to split a string 1128-2 so that I can have two separate values. For example, value1: 1128 and value2: 2, so that I can then use each value se

6条回答
  •  余生分开走
    2021-01-30 16:10

    dependencies {
       compile ('org.springframework.kafka:spring-kafka-test:2.2.7.RELEASE') { dep ->
         ['org.apache.kafka:kafka_2.11','org.apache.kafka:kafka-clients'].each { i ->
           def (g, m) = i.tokenize( ':' )
           dep.exclude group: g  , module: m
         }
       }
    }
    

提交回复
热议问题