开发遇见的问题(后端)
小志会
这个作者很懒,什么都没留下…
展开
-
5.使用springsecurity时authenticationManager.authenticate报StackOverflowError错误
使用springsecurity时 authenticationManager.authenticate报StackOverflowError错误1.在注入bean时 authenticationManager()和WebSecurityConfigurerAdapter的authenticationManagerBean()是两个不同的方法,并且 您正在调用超类的 authenticationManagerBean() 方法,据我所知,这取决于 authenticationManager(原创 2022-05-12 10:01:15 · 3757 阅读 · 7 评论 -
4.mybatis使用resultMap时一对多的关系使用HashMap收集不使用实体类
mybatis使用resultMap时一对多的关系使用HashMap收集不使用实体类结果集为: <resultMap id="map" type="HashMap"> <id property="tempId" column="tempId"></id> <result property="tempName" column="tempName"></result> <collection原创 2022-04-24 17:14:41 · 2247 阅读 · 0 评论 -
3.java操作excel,报Cannot get a STRING value from a NUMERIC cell,且使用setCellType(CellType.STRING)过期的解决
java操作excel,报Cannot get a STRING value from a NUMERIC cell,且使用setCellType(CellType.STRING)过期的解决//Cannot get a STRING value from a NUMERIC cell 问题所在,因为表格是数值但是读取的方式是字符串//解决方案 DataFormatter formatter = new DataFormatter(); String value = formatter.formatC原创 2022-04-20 16:33:09 · 1414 阅读 · 0 评论 -
2.java操作Excel,并且赋上封装好的操作Excel的工具类
java操作Excel,并且赋上封装好的操作Excel的工具类封装的操作Excel工具类package org.mohrss.si.biz.utils;import org.apache.poi.hssf.usermodel.*;import org.apache.poi.ss.usermodel.*;import org.apache.poi.ss.usermodel.DateUtil;import org.apache.poi.xssf.usermodel.XSSFWorkbook;i原创 2022-04-15 16:57:30 · 580 阅读 · 0 评论 -
1.SpringBoot的定时任务也就是@scheduled不支持集群
SpringBoot的定时任务也就是@scheduled不支持集群原创 2022-04-02 16:59:12 · 684 阅读 · 0 评论