springboot
tonysh_zds
这个作者很懒,什么都没留下…
展开
-
ant-desgin 打开pdf增加认证参数据
ant-desgin 打开pdf增加认证参数据原创 2022-07-13 12:47:31 · 112 阅读 · 0 评论 -
elasticsearch 7.6.2 安装
服务端软件:https://github.com/medcl/elasticsearch-analysis-ik/releaseshttps://www.elastic.co/cn/downloads/elasticsearch安装:elasticsearch ik分词器的安装和使用https://blog.csdn.net/weixin_44723434/article/details/89888489密码设置https://www.icode9.com/content-4-890630.h原创 2022-05-27 15:27:03 · 360 阅读 · 0 评论 -
easy-es环境配置
下载easy-eshttps://repo1.maven.org/maven2/io/github/xpc1024/rem 进入libs目录运行一下命令安装@echo offecho 'install'start /b mvn install:install-file -DgroupId=io.github.xpc1024 -DartifactId=easy-es-parent -Dversion=0.9.16 -Dpackaging=pom -Dfile=easy原创 2022-05-27 15:22:13 · 656 阅读 · 0 评论 -
jeecg国产化数据库支持
jeecg-boot-base-corepom.xml文件修改,注释掉hibernate<!--代码生成器用到hibernate,人大进仓库时无hibernate支持(jdbc无hibernate支持),且与Flowalbe冲突--><!--<dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-core</artifactId>原创 2022-05-25 17:41:34 · 397 阅读 · 0 评论 -
vue + nginx 反向代理配置
场景:门户 地址单点登录跳转到项目地址门户地址:http://192.168.1.70门户地址加图标链接: http://192.168.1.70/test项目地址:http://192.168.1.65/门户服务器nginx增加反向代理 test指向 项目地址server { listen 80 ; server_name localhost; #charset koi8-r; #access_log logs原创 2021-12-23 16:59:51 · 1851 阅读 · 0 评论 -
金仓数据库字段_金仓数据库KingBase8迁移SQL问题汇总
1> 命名需要加 as 关键字;2> 别名不能加mysql自动生成斜单引号,中文别明不能加单引号;3> 当mysql某个字段的类型为 tinyint时,且长度为1,迁移到金仓时,自动转换为 true 或 false;(需要讲tinyint改为2,才可以保持一样的数值,对应类型为Integer);4> 计算时,需要将varchar类型转换为Decimal类型,才可以与1.000000023去加减乘除;例如: cast(IF(score,0) as DECIMAL) * 0.1原创 2021-12-02 10:52:12 · 8028 阅读 · 1 评论 -
MyBatis-Plus 中文
https://mp.baomidou.com/guide/generator.html#%E6%B7%BB%E5%8A%A0%E4%BE%9D%E8%B5%96MybatisPlus中@TableField注解的使用详解https://www.jb51.net/article/195169.htm原创 2021-08-19 10:54:36 · 333 阅读 · 0 评论 -
泛型作用: 定义数据转换类型
泛型作用: 定义数据转换类型指定泛型需要的具体类型,约束对象处理数据的类型,进行数据类型转换查询 UserQueryFormUserQueryForm extends BaseQueryFormBaseQueryForm extends BaseFormpublic class BaseForm1)From转化为Po2)由 QueryForm 转 QueryParampublic P toParam(Class clazz)///接收查询form表单数据@ApiModel@Datap原创 2021-08-18 17:30:54 · 294 阅读 · 0 评论 -
语言语法汇总
https://www.runoob.com/go/go-tutorial.html原创 2021-08-17 10:52:01 · 68 阅读 · 0 评论 -
springboot+vue 支持@DELETE与@POST请求
后台修改1、原请求方法@Log("删除自定义查询字段") @ApiOperation("删除自定义查询字段") @PreAuthorize("@el.check('defQueryField:del')") @DeleteMapping public ResponseEntity<Object> delete(@RequestBody Integer[] ids) { defQueryFieldService.deleteAll(ids);原创 2021-07-07 13:22:20 · 660 阅读 · 0 评论 -
org.hibernate.validator.constraints.NotBlank‘ validating type ‘java.lang.Integer
使用hibernate时,在save方法时,报了:org.hibernate.validator.constraints.NotBlank’ validating type 'java.lang.Integer,因为@NotBlank是针对String的 。 解决方法是将实体类的注解换成 @NotNull,就行了原创 2021-06-23 14:19:30 · 736 阅读 · 0 评论 -
Validator 参数校验springboot整合Validator,自定义手机号参数校验
https://blog.csdn.net/m0_46425463/article/details/108006414原创 2021-05-09 17:06:38 · 511 阅读 · 0 评论 -
maven本地注册
mvn install:install-file -DgroupId=org.jeecgframework.boot -DartifactId=codegenerate -Dversion=1.2.5 -Dpackaging=jar -Dfile=E:\springboot\codegenerate-1.2.5.jar原创 2021-01-06 09:47:05 · 219 阅读 · 0 评论 -
jeecg jar下载
http://maven.jeecg.org/nexus/content/repositories/jeecg/org/jeecgframework/codegenerate/3.4.6-p3/原创 2021-01-04 16:16:38 · 1008 阅读 · 0 评论 -
SpringBoot报错:java.lang.NoSuchMethodError: javax.servlet.http.HttpServletRequest.getHttpServletMappin
原因:1. 造成这种启动异常的原因一般是由于本地的Tomcat版本与SpringBoot不一致。这种原因的解决方法就是替换成一致即可。2. JKD的libs目录下存在servlet.api.jar(可能某种编译时需要用到这个jar)的版本与SpringBoot内嵌的Tomcat不一致,这种原因直接把JDK下的该jar包替换成与Tomcat一致的即可。在查了各种论坛之后,发现主要的环节出现在Tomcat下的servlet-api.jar的版本的冲突,删掉一个即可删除即可。...原创 2020-11-24 18:24:56 · 4423 阅读 · 0 评论 -
mvn 报错 The parameters ‘mainClass’
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.6.0:java (default-cli) on project test_artifact: The parameters ‘mainClass’ for goal org.codehaus.mojo:exec-maven-plugin:1.6.0:java aremissing or invalid -> [Help 1]因为插件还没配置,注意配置引导路径原创 2020-11-12 20:43:25 · 1593 阅读 · 0 评论 -
CronExpression表达式详解和案例
cron表达式格式:{秒数} {分钟} {小时} {日期} {月份} {星期} {年份(可为空)}2. cron表达式各占位符解释:{秒数} ==> 允许值范围: 0~59 ,不允许为空值,若值不合法,调度器将抛出SchedulerException异常“*” 代表每隔1秒钟触发;“,” 代表在指定的秒数触发,比如"0,15,45"代表0秒、15秒和45秒时触发任务“-” 代表在指定的范围内触发,比如"25-45"代表从25秒开始触发到45秒结束触发,每隔1秒触发1次“/” 代表触发.原创 2020-10-28 09:38:14 · 461 阅读 · 0 评论 -
el-admin el-table表头列拖动功能
1、在公共类src/components/Crud/CRUD.operation.vue中增加表头拖动功能。mounted() { this.columnDrop() },//列拖拽 columnDrop() { const wrapperTr = document.querySelector('.el-table__header-wrapper tr') this.sortable = Sortable.create(wrapperTr, {原创 2020-09-23 15:27:33 · 1639 阅读 · 0 评论 -
jpa Auditor 自动赋值与自定义 @CreatedBy @LastModifiedBy @CreatedDate @LastModifiedDate
在spring jpa audit 中,在字段或者方法上使用注解@CreatedDate、@CreatedBy、@LastModifiedDate、@LastModifiedBy,当进行实体插入或者更新可以自动赋值@CreatedDate 创建时间@CreatedBy 创建人@LastModifiedDate 更新时间@LastModifiedBy 更新人使用:1.定义实体类,并使用注解标注字段/* * Copyright 2019-2020 zds * * Licensed und原创 2020-09-21 09:12:37 · 1726 阅读 · 0 评论 -
解决 阿里云认证 sun.security.validator.ValidatorException: PKIX path building failed
/* * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * - Redistributions of source原创 2020-09-10 14:50:43 · 343 阅读 · 0 评论 -
mvn install 本地jar包
cd到jar文件所在目录mvn install:install-file -DgroupId=com.hadoop.XXXXX -DartifactId=hadoop-XXXXX -Dversion=0.4XXXXX -Dpackaging=jar -Dfile=./XXXX.jar如mvn install:install-file -DgroupId=com.dragon -DartifactId=tools -Dversion=1.0-SNAP原创 2020-09-08 15:18:10 · 395 阅读 · 0 评论 -
springboot配置启动运行时的文字
1、在springboot 的src/main/resources 下面新建一个banner.txt 文本2:登录http://patorjk.com/software/taag 网站生成字符,点击左下角的copy,然后将生成的字符复制到banner.txt中,运行项目即可原创 2020-09-02 17:02:33 · 609 阅读 · 0 评论 -
上传的附件不能删除。getMetadata bug
public static Metadata getMetadata(File file){ Tika tika = new Tika(); try { System.out.println("文件类型---"+tika.detect(file)); // video/mp4 File txtFile = new File(file.getPath()+".txt"); // F原创 2020-08-31 20:12:37 · 316 阅读 · 0 评论 -
kkFileView(在线文件预览项目)功能详解
https://blog.csdn.net/chihujiang3132/article/details/100929989预览并发问题&预览首次打开慢?A:可使用预览转码队列,将需要预览的文件url放入队列中,提前进行转码,本地访问接口为:http://127.0.0.1:8012/addTask?url=http://xxx/test.txt (url参数为需要需要的文件访问地址)...原创 2020-08-27 11:55:58 · 3105 阅读 · 1 评论 -
Spring boot集成Swagger,并配置多个扫描路径
https://www.jianshu.com/p/dcaff30f91cc?tdsourcetag=s_pctim_aiomsg原创 2020-08-27 10:06:40 · 107 阅读 · 0 评论 -
mvn编译java project: Failed to execute goal org.codehaus.mojo:exec-maven-plugin
使用mvn编译一个java project: mvn clean compile exec:java结果出现如下错误:[INFO][INFO] — exec-maven-plugin:1.5.0:java (default-cli) @ snmpclient —[INFO] ------------------------------------------------------------------------[INFO] BUILD FAILURE[INFO] -------------原创 2020-08-19 09:26:44 · 722 阅读 · 0 评论 -
jpa 关联其它类(下拉框单选)
1、查询条件修改public class ItemTopicDetailQueryCriteria{ //原通过id查 /** 精确 */ // @Query // private Integer topicId; //改为通过ID关联对象查 @Query(propName = "id", type = Query.Type.EQUAL, joinName = "itemTopic") private Integer topicId ;...} ``原创 2020-08-14 11:15:49 · 324 阅读 · 0 评论 -
springboot word模板输出
https://blog.csdn.net/m0_37903882/article/details/102682427原创 2020-07-24 16:01:03 · 393 阅读 · 0 评论 -
Java注释@interface的用法
https://blog.csdn.net/u010730870/article/details/83062279原创 2020-07-18 09:55:07 · 150 阅读 · 0 评论 -
springboot2.0.x redis配置
https://www.cnblogs.com/taiyonghai/p/9454764.htmlredis: #数据库索引 database: 0 host: 127.0.0.1 port: 6379 password: #连接超时时间 timeout: 5000 lettuce: pool: # 最大空闲连接 max-idle: 8 # 最小空闲链接原创 2020-07-08 10:08:46 · 135 阅读 · 0 评论 -
Vue - 项目报错整理(1):RangeError: Maximum call stack size exceeded
https://blog.csdn.net/qq_33270001/article/details/99677324原创 2020-06-28 18:36:07 · 234 阅读 · 0 评论