摘要:
通过@ProperitesSource注解读取配置信息 1,加入依赖 2,通过自定义配置文件配置数据源信息 3,创建配置类 package com.bdqn.springbootjdbc.config; import com.alibaba.druid.pool.DruidDataSource; i 阅读全文
摘要:
阅读全文
摘要:
1,URL表达式 1),语法 在Thymeleaf中URL表达式语法为@{} 2),绝对路径 <a th:href="@{http://www.baidu.com}">绝对路径</a> 3),相对路径 相对于当前项目的根 <a th:href="@{/show2}"></a> 相对于服务器路径的根 阅读全文
摘要:
1,HttpServletRequest request.setAttribute("req","HttpServletRequest"); <span th:text="${#httpServletRequest.getAttribute('req')}"></span> <span th:tex 阅读全文