elkers
8 天以前 60041d6ee9bd2fcd8b6bcb827bf46e0727941665
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package com.nanjing.water;
 
import com.baomidou.mybatisplus.core.toolkit.StringUtils;
import com.nanjing.water.repository.po.TestInfoPO;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
 
@RunWith(SpringJUnit4ClassRunner.class)
public class StringUtilTest {
    @Test
    public void camelToUnderlineTest() {
        String tableName = StringUtils.camelToUnderline(TestInfoPO.class.getSimpleName().replace("PO", ""));
        System.out.println(tableName);
    }
}