自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(8)
  • 收藏
  • 关注

原创 mybatis 标签sql、include、if、foreach

mybatis 标签sql、include、if、foreach除了常用的基本标签,还有一些标签的使用可以让我们代码简单减轻难度。sql一般用来重用,通常是查询语句select…from…,然后配合include标签引用ifif标签配合其test属性,比如<if test="startDate != null ">and date_format(DATE,'%Y-%m-%d') &gt;= str_to_date(#{startDate},'%Y-%m-%d')</if

2021-08-10 11:26:32 278

原创 Mybatis @Param注解

Mybatis @Param注解用来在DAO层标注入参对mapper层的名称,例如DAO层为List<HourWorkReport> selectHourWorkReportList(@Param("startDate") String startDate, @Param("endDate") String endDate);在mapper层会识别入参startDate和endDate:<select id="selectHourWorkReportList" resultMap

2021-08-10 11:09:11 173

原创 git feature分支使用

git feature分支使用在系统上线后,如果有新功能需要开发,最好是自己在本地dev分支上新建一个feature分支用来自己开发:git checkout -b feature-xxx开发测试完毕后提交分支 add commit然后切换回dev分支,进行合并:git checkout devgit merge feature-xxx最后合并完成后删除feature分支即可...

2021-08-10 10:56:45 530

原创 python:NameError: name ‘__version__‘ is not defined [17060] Failed to execute script exportTest

用pyinstaller打包后双击exe会提示NameError: name '__version__' is not defined [17060] Failed to execute script exportTest网上查了各种方法,最后在代码里将没有用到的import 和 from代码删掉然后打包就不会报错了,估计是本地的环境或者venv环境中缺失一些类库导致的,因为我当时是在venv环境中编译的,可能打包的时候默认是本地环境,导致缺失一些包,而我刚好把没用到的import和from删掉,可以试

2021-02-25 15:13:36 2084

原创 用hutool将数据库中记录和字段导出为excel(springboot+jpa)

用hutool将数据库中记录和字段导出为excel(springboot+jpa)最近在做一个接口,将数据库导出为excel,一开始想了很多方法。先展示下一开始用的方法,不是自动的,每个不同的数据库都需要再实现类重写,字段一多就很麻烦,但是逻辑比较简单:dao层:public interface BusCarAccidentDao extends JpaSpecificationExecutor<BusCarAccidentModel>, JpaRepository<BusCarAc

2020-10-15 10:58:44 915 1

原创 Action:Consider defining a bean of type ‘AdminPunishService‘ in your configuration. 解决办法

Action:Consider defining a bean of type ‘org.unreal.cloud.inner.AdminPunishService’ in your configuration. 解决办法Description:Field adminPunishService in AdminPunishController required a bean of type ‘AdminPunishService’ that could not be found.方法一:在启动类里加注

2020-09-22 17:15:31 217

原创 screw数据库快速开发文档工具(springboot)

screw数据库快速开发文档工具(springboot)1.创建项目这里选择Web——springweb,next;2.添加依赖<dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>5.1.47</version></dependency>&l

2020-09-18 15:09:31 113

原创 第一周实习所学知识

1.vo 返回给前端entity/model 和数据库字段一一对应的dto 前端传给dto网上解释:https://www.cnblogs.com/vegetableDD/p/11732495.html2.@EqualsAndHashCode(callSuper = true)3.@ApiModel@ApiOperation@ApiSwagger接口文档的注解4.@RequiredArgsConstructor@RequiredArgsConstructor每个需要特殊处理的

2020-09-18 14:40:46 106

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除