- 博客(17)
- 收藏
- 关注
原创 list.size为1但是内容为null
left join or right join 联查时,where条件筛选从表,且不存在时 会产生一条为null的数据。
2023-11-14 16:48:00
116
1
原创 ajax请求嵌套页面假死
问题描述ajax嵌套,beforeSend中对页面的渲染方法没有生效$.ajax({ type:'post', url:api['selectChina'], xhrFields:{withCredentials:true}, data: result, beforeSend:function(){disbtn(btn);}, success:function(
2022-04-19 15:22:58
284
原创 @Scheduled(cron)报错导致项目启动不了
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'holidayScheduleController' defined in file [E:\workspace\clone\oumengehr\target\oumeng-1.0\WEB-INF\classes\com\oumeng\controller\holiday\HolidayScheduleContr
2022-01-06 15:58:31
1553
原创 记一次com.microsoft.sqlserver.jdbc.SQLServerException: Invalid object name
报文:### Error querying database. Cause: com.microsoft.sqlserver.jdbc.SQLServerException: Invalid object name 'WMS_Inventory_View'.### The error may exist in file [E:\workspace\clone\oumengcrm\oumeng-biz\oumeng-biz-wms\target\classes\mapping\ProudctMapper
2021-10-19 16:54:12
1883
原创 SqlServer修改表设计提示The object ‘DF__CompanyTr__Creat__0CDAE408’ is dependent on column ‘Created’
查看表约束sp_helpconstraint ‘tb_pushorder_detail’;删除报错提示的约束alter table [dbo].[tb_pushorder_detail] drop constraint DF__tb_pushor__lotat__07220AB2
2021-09-09 13:30:12
395
转载 POI使用HSSF,XSSF,SXSSF三种方式
作者:帮我的鸵鸟盖个章链接:https://www.jianshu.com/p/c8766986b95b来源:简书著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。POI提供了HSSF、XSSF以及SXSSF三种方式操作Excel。HSSF:Excel97-2003版本,扩展名为.xls。一个sheet最大行数65536,最大列数256。XSSF:Excel2007版本开始,扩展名为.xlsx。一个sheet最大行数1048576,最大列数16384。SXSSF:是在XS.
2021-08-18 17:51:26
473
原创 map转json时key或value为null的情况
当value为null时 @Test public void testFastJsonAndJackson() throws Exception { HashMap<String, Student> map = new HashMap<>(); map.put("aa", new Student("01", "张三")); map.put("bb", new Student("02", "李四"));
2021-08-13 13:28:28
1267
原创 记一次springboot项目启动失败APPLICATION FAILED TO START
报错日志***************************APPLICATION FAILED TO START***************************Description:Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.Reason: Failed to determine a suitab
2021-08-05 10:38:59
1948
原创 idea中maven项目clean/install时报 Process terminated
可能原因之一:项目的maven配置文件settings.xml 配置出错,查看自身配置,如下图所示:产生上述问题可能原因:git代码包含.idea配置 把其他人的配置拉到你本地了
2021-07-07 14:38:33
2480
原创 idea设置git提交时忽略文件
点击File --> Settings -->Editor --> File Types进行设置如图所示,在忽略的文件和文件夹中,添加了 *.iml;.idea;target; 后idea会自动忽略并隐藏这些文件,在git提交时也不会包含这些文件.
2021-07-07 13:41:44
666
原创 SQL语句case/when应用
SELECT * FROM (SELECT a表别名.*, CASE WHEN b表别名.列名 = '1' THEN '1' ELSE '0' END AS 别名 , case when c表别名.列名 is null then '0' else '1' end as 别名 FROM ( SELECT * FROM a表 WHERE 列名 = 条件 ) a表别名 LEFT JOIN b表 b表别名 ON a表别名.列名= b表别名.列名 LEFT JOIN ( SELECT * FRO
2021-07-02 10:14:09
95
原创 try/catch执行顺序
代码一:正常执行@Test public void test8() { System.out.println("a:"+getNum()); } public int getNum(){ int a = 1; try {// int b = 1 / 0; } catch (Exception e) { a++; System.out.printl
2021-06-21 10:22:19
316
原创 jackson和fastJson || Base64
jackson和fastJson || Base641. jackson和fastJson 实现对象转json字符串体验; 2. Base64 编码和解码体验;public class Test01 { public static void main(String[] args) throws JsonProcessingException { Article article = new Article(); article.setId(22);
2021-06-17 11:23:59
395
原创 IDEA报Unable to save settings: Failed to save settings. Please restart IntelliJ IDEA
IDEA报Unable to save settings: Failed to save settings. Please restart IntelliJ IDEA问题描述问题描述打开idea后就提示:Unable to save settings: Failed to save settings. Please restart IntelliJ IDEA 不知道什么原因,在无视该情况下发现不能修改文件和新建文件!!!提示:cannot save file...
2021-05-03 01:57:47
1234
2
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人