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 项目学习 ...
随机推荐
- spring中ApplicationListener的用法
1.实现ApplicationListener接口,并重写onApplicationEvent方法 @Component public class RSAKeyInitListener impleme ...
- Visual C++没事别启用/Za编译选项
Visual C++对于C++标准的支持不是很完善好像是钦定了的.MS还特意在这里说了些非标准行为[1]以及扩展行为[2].这就不可避免地会让处女座程序猿感到难受(我不是处女座).所以,经过一番goo ...
- Linux集群架构(一)
第二十八课 Linux集群架构(一) 目录 一. 集群介绍 二. keepalived介绍 三. 用keepalived配置高可用集群 四. 负载均衡集群介绍 五. LVS介绍 六. LVS调度算法 ...
- java富文本编辑器KindEditor
在页面写一个编辑框: <textarea name="content" class="form-control" id="content&quo ...
- MNIST机器学习入门
"python: 3.5" # -*- coding: utf-8 -*-"""Created on Tue Oct 16 15:29:38 2018 ...
- centos 6.5 下 nginx 简单优化_虚拟主机_负载均衡
# 用了nginx for win很久,安装也是超级简单.# 还是用一下linux版的吧.环境是centos 6.5 x64 # 安装开始: # 先安装依赖 yum install gcc-c++ y ...
- vimrc配置
"=========================================================================" DesCRiption 适合 ...
- [转载]Fiddler 解析!抓包抓得好真的可以为所欲为 [一]
说起抓包,很多人以为就是用个工具,简简单单地抓一下就可以了.昨天在面试一个安卓逆向,直接告诉我[抓包没有技术含量].在这里,我必须发一个教程,解析一下抓包神器——Fiddler.Fiddler仅仅是一 ...
- L2-013 红色警报 (25 分)
L2-013 红色警报 (25 分) 战争中保持各个城市间的连通性非常重要.本题要求你编写一个报警程序,当失去一个城市导致国家被分裂为多个无法连通的区域时,就发出红色警报.注意:若该国本来就不完全 ...
- shell 删除颜色代码
sed -r "s/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]//g"