logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

添加配置解决Could not locate ordinal parameter [0], expecting one of [1]

项目hibernate3升级hibernate5时,HQL语句使用"?"参数占位符运行报错,国内查到的都是这样改:第一种String hql = "from UserForm where sex=?";//定义查询HQL语句Query query = session.createQuery(hql);//执行查询语句,获取Query对象query.setString(0,"女");//设置HQL语

#hibernate
Vue解决跨域请求问题,No ‘Access-Control-Allow-Origin‘ header is present on the requested resource

1、response设置响应头,让返回数据包中的header中增加允许跨域的信息response.setHeader("Access-Control-Allow-Origin", "*");response.setHeader("Access-Control-Allow-Credentials", "true");response.setHeader("Access-Control-Allow-H

ant design vue表格中checkbox设置单选/多选

多选/单选:type :checkbox/type :radio

ant design vue a-upload上传文件后隐藏文件名和图标

showUploadList设置成false,不展示文件

Vue获取数据后只渲染前几条数据

可以使用两种方式:1、使用.slice(0, 4),展示四条数据<ul><li v-for="(item,index) in authenticationList.slice(0,4)" :key="index">{{ item.message }}</li></ul>2、取得数组的索引,使用v-if 或 v-show根据index判断四条之后的数据

Vue中使用this.$router.resolve打开新页面

detail(id){let route2 = this.$router.resolve({name:'ourserve',//这里是跳转页面的namequery:{id:id//要传的参数}})window.open(route2.href,'_blank') //打开新的页面},...

SpringBoot和VUE前后端合并自动打包成jar

通过maven管理,将前后端分离两个项目合并打包成一个jar,成为一个单体项目。springboot在install或者package打包时,调动vue打包,vue自动install和build,将生成的dist复制到spring boot后端的resources下,完成合并打包。1、在items-vue前端项目下新建pom.xml,无需添加标签配置,新建完成选中pom右击add到maven。项目

#spring boot#jar#后端
ES 7.16 Java API Client 新特性(使用ElasticsearchClient连接操作ES完整demo)

截止7.15版本TransportClient tcp长连接方式,HighLevelRestClient Http rest连接方式官网已淘汰。使用最新 ElasticsearchClient连接操作ES完整教程:1、添加依赖<dependency><groupId>co.elastic.clients</groupId><artifactId>el

#elasticsearch#java#大数据
到底了