Commit cfe03d08 authored by huangcb's avatar huangcb

release模式下不打包配置文件

parent 15b3848d
...@@ -195,18 +195,6 @@ ...@@ -195,18 +195,6 @@
</configuration> </configuration>
</plugin> </plugin>
</plugins> </plugins>
<resources>
<resource>
<directory>src/main/resources</directory>
<includes>
<include>**/*.*</include>
</includes>
<excludes>
</excludes>
<filtering>true</filtering>
</resource>
</resources>
</build> </build>
</project> </project>
package com.esv.freight.notice.common.util; package com.esv.freight.notice.common.util;
import com.alibaba.fastjson.JSONObject;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.junit.After; import org.junit.After;
import org.junit.Assert; import org.junit.Assert;
import org.junit.Before; import org.junit.Before;
...@@ -30,6 +32,16 @@ public class SmsCaptchaUtilsTest { ...@@ -30,6 +32,16 @@ public class SmsCaptchaUtilsTest {
log.info("=================================== Test End ==================================="); log.info("=================================== Test End ===================================");
} }
@Test
public void test() {
log.info(new JSONObject().getString("abc"));
log.info(String.valueOf(StringUtils.isBlank(new JSONObject().getString("abc"))));
log.info(String.valueOf(StringUtils.isBlank(null)));
log.info(String.valueOf(StringUtils.isBlank("")));
log.info(String.valueOf(StringUtils.isBlank(" ")));
log.info(String.valueOf(StringUtils.isBlank("abc")));
}
/** /**
* 获取默认长度的短信验证码 * 获取默认长度的短信验证码
**/ **/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment