实习
Silver_Raiden
这个作者很懒,什么都没留下…
展开
-
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 阅读 · 0 评论 -
用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 阅读 · 0 评论 -
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 阅读 · 0 评论 -
第一周实习所学知识
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 阅读 · 0 评论