zoukankan      html  css  js  c++  java
  • 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

  • 相关阅读:
    MySQL too many connections
    【MySQL】 清除等待连接
    wmic 获得系统硬件信息
    Linux 修改用户名
    初步了解虚拟化
    MySQL show 语句
    php去除bom
    jq闭包
    git
    地址收藏
  • 原文地址:https://www.cnblogs.com/as3lib/p/10697327.html
Copyright © 2011-2022 走看看