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
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#大数据
到底了