请问有没有办法在Java或Spring中用stringUtils函数将多个空格替换为单个空格?
例如:
1.
test test
test test
2.
test test
test test
3.
test test
test test