Springboot常用依赖/工具包

一.前端部分

1.bootstrap+jquery

<dependency>
	<groupId>org.webjars</groupId>
	<artifactId>bootstrap</artifactId>
	<version>3.3.5</version>
</dependency>
<dependency>
	<groupId>org.webjars</groupId>
	<artifactId>jquery</artifactId>
	<version>3.1.1</version>
</dependency>

引用链接:

<link rel="stylesheet" href="/webjars/bootstrap/3.3.5/css/bootstrap.min.css" />
<script src="/webjars/jquery/3.1.1/jquery.min.js"></script>
<script type="text/javascript" src="https://cdn.staticfile.org/jquery-cookie/1.4.1/jquery.cookie.min.js"></script>

2.常用前端组件下载:
1.layer.js (弹窗组件)
2.fileinput (文件上传组件)

3.thymeleaf名字空间

<html lang="en" xmlns:th="http://www.thymeleaf.org">

二.后端部分

1.热部署

<!--引入支持热部署的依赖-->
<dependency>
	<groupId>org.springframework.boot</groupId>
	<artifactId>spring-boot-devtools</artifactId>
	<optional>true</optional> <!-- 这个需要为 true 热部署才有效 -->
	<scope>runtime</scope>
</dependency>
IDEA SpringBoot热部署设置

application.properties添加语句:spring.thymeleaf.cache=false

2.WebSocket

<dependency>
	<groupId>org.springframework.boot</groupId>
	<artifactId>spring-boot-starter-websocket</artifactId>
</dependency>

使用案例见:https://www.fullstar.tech/427/

3.shiro

<dependency>
	<groupId>org.apache.shiro</groupId>
	<artifactId>shiro-spring</artifactId>
	<version>1.4.1</version>
</dependency>

使用案例见:https://www.fullstar.tech/934/

Related post

  1. ARM9指令系统常用指令

    2020-11-28

  2. cmake应用

    2021-01-18

  3. php调用python脚本

    2020-07-05

  4. MapReduce代码编写总览

    2021-09-20

There are no comment yet.

COMMENT

Take a Coffee Break

Recommend post

  1. 常用工具指令

    2022-09-18

Category list

ABOUT

Welcome to FullStar, a captivating online destination where the realms of software development and personal reflections intertwine.

April 2025
M T W T F S S
 123456
78910111213
14151617181920
21222324252627
282930  

Life Logs

  1. 回首

    2023-07-14

Return Top