01 2020 档案
摘要:方法一: select IF(ISNULL(columnName) OR columnName='',0,columnName) from tableName; 方法二: select case when ISNULL(columnName) OR columnName='' then 0 else
阅读全文
摘要:1.需要引用以下依赖 <dependency> <groupId>org.apache.httpcomponents</groupId> <artifactId>httpclient</artifactId> </dependency> <dependency> <groupId>org.apach
阅读全文
摘要:最近springMVC项目和springboot项目都遇到用@value获取配置文件中配置项值为空的情况,以下是我的解决方法: springMVC项目解决方法: service-context文件中增加下面配置: <context:component-scan base-package="com.t
阅读全文