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的学习笔记的更多相关文章

  1. Spring boot + jdbc学习笔记

    pom.xml: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www. ...

  2. Spring Boot + WebSocket 学习笔记

    首先需要了解一下背景,什么是WebSocket以及为什么要用WebSocket. 在常见的Web应用中,客户端与服务器通信,都是通过HTTP协议进行通信,客户端一次请求,服务端一次响应.而WebSoc ...

  3. Spring boot ----RestTemplate学习笔记

    ****spring boot-----restTemplate 封装了HttpURLConnection,HttpClient,Netty等接口访问实现库 restTemplet包含以下部分 Htt ...

  4. spring cloud(学习笔记)高可用注册中心(Eureka)的实现(二)

    绪论 前几天我用一种方式实现了spring cloud的高可用,达到两个注册中心,详情见spring cloud(学习笔记)高可用注册中心(Eureka)的实现(一),今天我意外发现,注册中心可以无限 ...

  5. LM3S之boot loader学习笔记-2

    LM3S之boot loader学习笔记-2 彭会锋 () 上一篇中介绍了bootloader的基础知识,对于bootloader的作用和如何编写bootloader也有了大概的了解了,这一篇主要讲解 ...

  6. LM3S之boot loader学习笔记-1

    LM3S之boot loader学习笔记-1 彭会锋 (首先声明,此系列文章编写参考了很多资料,其中一些内容是原版内容的引用和整理,并加入了一些自己的见解,我已经尽量标明引用部分,如有未全部标注部分, ...

  7. Spring Boot 项目学习 (四) Spring Boot整合Swagger2自动生成API文档

    0 引言 在做服务端开发的时候,难免会涉及到API 接口文档的编写,可以经历过手写API 文档的过程,就会发现,一个自动生成API文档可以提高多少的效率. 以下列举几个手写API 文档的痛点: 文档需 ...

  8. Spring Boot 项目学习 (三) Spring Boot + Redis 搭建

    0 引言 本文主要介绍 Spring Boot 中 Redis 的配置和基本使用. 1 配置 Redis 1. 修改pom.xml,添加Redis依赖 <!-- Spring Boot Redi ...

  9. Spring Boot 项目学习 (一) 项目搭建

    0 引言 本文主要记录借用Idea 开发环境下,搭建 Spring Boot 项目框架的过程. 1 系列文档目录 Spring Boot 项目学习 (一) 项目搭建 Spring Boot 项目学习 ...

随机推荐

  1. callback理解

    ex:       var fn1 = function(callback){             //do something             callback && c ...

  2. .NET界面控件DevExpress发布v18.2.8|附下载

    DevExpress Universal Subscription(又名DevExpress宇宙版或DXperience Universal Suite)是全球使用广泛的.NET用户界面控件套包,De ...

  3. (2018 Multi-University Training Contest 3)Problem D. Euler Function

    //题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=6322 //题目大意:给定 k,求第 k 小的数 n,满足 φ(n) 是合数.显然 φ(1) = 1 ...

  4. 汉诺塔I

    题目描述 对于传统的汉诺塔游戏我们做一个拓展,我们有从大到小放置的n个圆盘,开始时所有圆盘都放在左边的柱子上,按照汉诺塔游戏的要求我们要把所有的圆盘都移到右边的柱子上,请实现一个函数打印最优移动轨迹. ...

  5. css清除浮动方式总结

    1.通过父元素overflow:hidden,缺点:超出部分隐藏,不推荐使用 <!DOCTYPE html> <html lang="en"> <he ...

  6. nginx——优化 Nginx access 日志

    1. 配置日志切割 #!/bin/bash savepath_log='/usr/local/clogs' nglogs='/usr/local/nginx/logs' mkdir -p $savep ...

  7. CSS内嵌样式实现打字效果

    <style> *{margin:0;padding:0;} @keyframes typing { from { width: 0; } } @keyframes blink-caret ...

  8. PHP多进程引发的msyql连接数问题

    PHP多进程引发的msyql连接数问题 业务中有一块采用了PHP的pcntl_fork多进程,希望能提高效率,但是在执行的时候数据库报错 PDO::prepare(): Premature end o ...

  9. ASP.NET Web API之消息拦截

    要在action执行前后做额外处理,那么ActionFilterAttribute和ApiControllerActionInvoker就派上用场了.比如客户端请求发过来的参数为用户令牌字符串toke ...

  10. c++利用类进行单链表的插入,删除,清空操作

    #if 1 #include <iostream> #include <stdlib.h> #include <time.h> #include <fstre ...