![](https://img-blog.csdnimg.cn/20200710102122496.jpg?x-oss-process=image/resize,m_fixed,h_224,w_224)
springboot
以springboot为框架的相关记录
在线笔记本
这个作者很懒,什么都没留下…
展开
-
springboot中JPA的各种排序方式+分页+关键字查询
1、非原生语句排序,在Dao接口Repositorie中编写非原生SQL语句/** * 用户管理的Dao接口 */public interface UserRepositories extends JpaRepository<User, Integer>,JpaSpecificationExecutor<User>{ /** * 查询全部,倒序 * @return */ @Query(value = "select u from User u order b原创 2021-10-26 10:27:42 · 3057 阅读 · 0 评论 -
本地/tomcat/web项目文件绝对路径获取
1、在web环境中获取项目中src/main/webapp/Text.html网页模板String path = request.getSession().getServletContext().getRealPath("Text.html"));//获取结果为绝对路径:E:\java\Text\src\main\webapp\Text.html2、使用定时器或后台运行无request时,可在application.properties配置文件中配置相对路径:#模板路径–本地textpath=/原创 2021-03-12 14:58:51 · 963 阅读 · 0 评论 -
SpringBoot_JPA框架--多条件查询--分页与不分页两种方式
SpringBoot_JPA框架,多条件查询的分页与不分页两种方式以user用户模块为例,以下包括:controller、service、dao层详细代码JPA多条件查询和后端分页关键点:Dao接口继承JpaSpecificationExecutor1、Dao接口package com.demo;import org.springframework.data.jpa.repository.JpaRepository;import org.springframework.data.jpa.rep原创 2020-11-27 15:36:30 · 1799 阅读 · 0 评论 -
springboot项目打war包_实际项目运用
将正式项目名称改为world做示例,springboot项目打war包IDE:eclipseJDK:jdk1.8war包部署地:tomcat1、 Application(springboot启动类,有的叫MySpringbootApplication)a) 类继承 extends SpringBootServletInitializerb) 重写方法 @Override protected SpringApplicationBuilder configure(SpringAp原创 2020-07-22 08:56:29 · 158 阅读 · 0 评论 -
websocket使用springboot实现的详细步骤
websocket在前端页面加载时实现一次握手通讯后,可相互发送信息。一般用来实现推送服务或短间隔长连接数据请求springboot实现websocket方式1、使用maven添加websocket依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-websocket</artifactId>原创 2020-06-23 14:49:00 · 1787 阅读 · 0 评论 -
activiti数据库表 SQL文件
数据库28张表,SQL文件。网盘链接: https://pan.baidu.com/s/1GOKn70XrvwukAq7AJ8eA5w提取码: zmfr操作步骤:创建数据库activiti,字符集选择utf8,排序规则默认(utf8_general_ci)导入act.sql文件(亲测成功)...原创 2019-10-24 16:57:05 · 1231 阅读 · 0 评论 -
activiti 工作流引擎 - 接口实战运用
1、依据简单的 开始–>申请–>审批–>结束 流程步骤解析接口方法。该流程图使用eclipse的activiti插件所画,插件安装步骤:https://blog.csdn.net/wangshao5122/article/details/100920422申请操作指定操作人为:admin审批则使用动态变量后期设定审批人: ${username}2、启动流程在启动流...原创 2019-10-24 16:26:53 · 592 阅读 · 0 评论 -
JDBC 原生SQL 在springboot集成下的使用
1、添加依赖: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-jdbc</artifactId> </dependency>2、可直接在service层使用:import...原创 2019-10-21 17:04:46 · 298 阅读 · 0 评论 -
fastDFS上传下载
直接上代码;(注:本项目为spring-boot框架)1、pom.xml依赖,pom下载不下来的话,可以在https://mvnrepository.com/search?q=fastdfs中,下载第二个部署到本地;<dependency> <groupId>org.csource</groupId> <artifactId>fa...原创 2019-09-26 17:27:53 · 193 阅读 · 0 评论 -
在eclipse中安装Activiti插件--工作流引擎
在eclipse中安装Activiti插件,网查方法共有两种:1、Eclipse中点击help -> Install new Software ->Add Name:Activiti BPMN 2.0 designer Location:http://activiti.org/designer/update/ 我使用这种方法并没有找到相关插件。2、离线安装(免费...原创 2019-09-17 15:27:06 · 448 阅读 · 1 评论 -
web常用属性和springboot热部署/视图配置
1、简单的web常用属性<input type="text"> required="required" 必填 readonly="readonly" 只读<div> style="display: none;" 隐藏 <input type="radio"> checked="checked" 按钮-选择 <...原创 2019-08-27 13:30:09 · 166 阅读 · 0 评论