Spring BOOT的学习笔记
1,静态文件夹src/main/resources/static下的,图片必须放在images文件夹下才能访问,直接放在static下不能访问
2,配置热部署,否则修改下Html,图片都得重启
https://www.cnblogs.com/yangxiaomei/p/9608029.html
https://www.cnblogs.com/lspz/p/6832358.html
3,thymeleaf教程
https://www.jianshu.com/p/908b48b10702
th:text 改变元素的文本 转义特殊字符
th:utext 不转义特殊字符
th:html任意属性 改变元素的任意属性
th:fragment 声明片段
th:replace th:insert 片段包含 类似 jsp:include
th:each 类似 c:forEach
th:if 条件判断 类似c:if
th:object th:with 声明变量
th:attr 属性修改
表达式语法:${...} 获取变量值或调用方法,${person.name} ${person.method()}
${#内置基本对象,内置工具对象} #ctx;#vars,#local,#request,#respose #session,#servletContext
${session.foo},${#strings.startWith()}
*{...} :选择表达式,配合th:object使用
#{...}获取国际化内容
@{...}定义URL连接
@{/order/details(id=${o.id})} 括号后面跟查询参数,前面自动拼接contextPath
<!-- Will produce 'http://localhost:8080/gtvg/order/details?orderId=3' (plus rewriting) -->
<a href="details.html"
th:href="@{http://localhost:8080/gtvg/order/details(orderId=${o.id})}">view</a>
<!-- Will produce '/gtvg/order/details?orderId=3' (plus rewriting) -->
<a href="details.html" th:href="@{/order/details(orderId=${o.id})}">view</a>
<!-- Will produce '/gtvg/order/3/details' (plus rewriting) -->
<a href="details.html" th:href="@{/order/{orderId}/details(orderId=${o.id})}">view
var num = [[${num}]]; 转义,双中括号 相当于th:text
var user = [(${user.toString()})]; 不转义 中括号,括号 相当于th:utext
4.SpringMVC从Controller跳转到另一个Controller
https://blog.csdn.net/xinyuan_java/article/details/50630015
解决Springboot中给Interceptor配置的excludePathPatterns无效的问题
Spring Boot拦截器配置拦截登陆
https://blog.csdn.net/qq_30745307/article/details/80974407
https://blog.csdn.net/turbo_zone/article/details/84454193
spring boot 2.x静态资源会被拦截器拦截的原因和解决方法
https://blog.csdn.net/weixin_40632733/article/details/81286838
https://blog.csdn.net/ln1593570p/article/details/80607616
IDEA设置Maven下载source、document
setting只是设置本工程,估计other settings 是设置新项目那估计是设置整个有效
https://blog.csdn.net/u014653854/article/details/80700408
学习Spring Boot:(十五)使用Lombok来优雅的编码
https://www.cnblogs.com/qnight/p/8997493.html
application.properties中文乱码
设置 File Encodings的Transparent native-to-ascii conversion为true,具体步骤如下:
依次点击
File -> Settings -> Editor -> File Encodings
将Properties Files (*.properties)下的Default encoding for properties files设置为UTF-8,将Transparent native-to-ascii conversion前的勾选上。
Java Web(二) Servlet中response、request乱码问题解决
https://www.cnblogs.com/whgk/p/6412475.html
在Maven工程中引入普通的jar
https://blog.csdn.net/rui276933335/article/details/79238173
Ladmin后台管理系统框架2.0
http://www.jq22.com/jquery-info21263
Mybatis-plus文档
https://mp.baomidou.com/guide/annotation.html
Spring BOOT的学习笔记的更多相关文章
- Spring boot + jdbc学习笔记
pom.xml: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www. ...
- Spring Boot + WebSocket 学习笔记
首先需要了解一下背景,什么是WebSocket以及为什么要用WebSocket. 在常见的Web应用中,客户端与服务器通信,都是通过HTTP协议进行通信,客户端一次请求,服务端一次响应.而WebSoc ...
- Spring boot ----RestTemplate学习笔记
****spring boot-----restTemplate 封装了HttpURLConnection,HttpClient,Netty等接口访问实现库 restTemplet包含以下部分 Htt ...
- spring cloud(学习笔记)高可用注册中心(Eureka)的实现(二)
绪论 前几天我用一种方式实现了spring cloud的高可用,达到两个注册中心,详情见spring cloud(学习笔记)高可用注册中心(Eureka)的实现(一),今天我意外发现,注册中心可以无限 ...
- LM3S之boot loader学习笔记-2
LM3S之boot loader学习笔记-2 彭会锋 () 上一篇中介绍了bootloader的基础知识,对于bootloader的作用和如何编写bootloader也有了大概的了解了,这一篇主要讲解 ...
- LM3S之boot loader学习笔记-1
LM3S之boot loader学习笔记-1 彭会锋 (首先声明,此系列文章编写参考了很多资料,其中一些内容是原版内容的引用和整理,并加入了一些自己的见解,我已经尽量标明引用部分,如有未全部标注部分, ...
- Spring Boot 项目学习 (四) Spring Boot整合Swagger2自动生成API文档
0 引言 在做服务端开发的时候,难免会涉及到API 接口文档的编写,可以经历过手写API 文档的过程,就会发现,一个自动生成API文档可以提高多少的效率. 以下列举几个手写API 文档的痛点: 文档需 ...
- Spring Boot 项目学习 (三) Spring Boot + Redis 搭建
0 引言 本文主要介绍 Spring Boot 中 Redis 的配置和基本使用. 1 配置 Redis 1. 修改pom.xml,添加Redis依赖 <!-- Spring Boot Redi ...
- Spring Boot 项目学习 (一) 项目搭建
0 引言 本文主要记录借用Idea 开发环境下,搭建 Spring Boot 项目框架的过程. 1 系列文档目录 Spring Boot 项目学习 (一) 项目搭建 Spring Boot 项目学习 ...
随机推荐
- Tensorflow实战系列之二:
还没想好,可能是人脸检测或者物体检测,或者加上动态检测~~
- 二、redis持久化
一.redis持久化 1 RDB持久化(定redis的数据定时dump到磁盘上的RDB持久化)RDB持久化是指在指定的时间间隔内将内存中的数据集快照写入磁盘,实际操作过程是fork一个子进程,先将数据 ...
- MyBatis最原始的实现curd的操作
关于jdbc的缺点: 1.数据库链接创建释放频繁造成系统资源浪费从而影响系统性能.如果使用数据库连接池可以解决此问题. 2.sql语句在代码中硬编码,不利于维护,sql变动需要改变java代码 3.使 ...
- oracle中创建数据库
一.在Oracle中创建数据库之前先改一下虚拟机的IP地址,以便访问 2. 3. 3.1 3.2 3.3 3.4 创建完成:输入sqlplus sys/123456 as sysdba测试
- JSP是一种语言
JSP(全称Java Server Pages)是运行在服务端的语言. <%-- 注释 --%>:JSP注释,注释内容不会被发送至浏览器甚至不会被编译 <!-- 注释 -->: ...
- Groovy学习笔记-陷阱
1.def和in是关键字 2.==映射到了equals() 中,如果有Comparable接口实现,则优先compareTo str1 = 'hello' str2 = str1 str3 = new ...
- NHibernate4使用Oracle.ManagedDataAccess.dll连接oracle及配置多个数据库连接
NHibernate数据库配置参数在hibernate.cfg.xml中 <?xml version="1.0" encoding="utf-8"?> ...
- crtontab定时执行任务
1.crontab介绍:crontab命令用于设置周期性被执行的指令.该命令从标准输入设备读取指令,并将其存放于“crontab”文件中,以供之后读取和执行. 2.查看当前用户的定时任务:cronta ...
- html+jquery实现简单图片裁剪
有了上一篇图片放大镜的铺垫,今天的这个例子是缩小镜,因为裁剪的原图往往很大,不能在工作区域看到全部图片,所以,要有缩小镜来显示,当前裁剪的区域是原图的个部分.按照惯例首先看下效果图: 功能一:载入默认 ...
- Python--错误SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape
Refer to:https://www.cnblogs.com/cyiner/archive/2011/09/18/2180729.html 用Python打开文件: fo=open("C ...