11 2020 档案
摘要:fragment介绍 fragment类似于JSP的tag,在html中文件中,可以将多个地方出现的元素块用fragment包起来使用。 fragment使用 定义fragment 所有的fragment可以写在一个文件里面,也可以单独存在,例如:新建index.html <div th:fragm
阅读全文
摘要:使用 <a th:href="@{/product/add}" target="_blank">产品</a> 可以得到 <a th:href="/product/add" target="_blank">产品</a> 使用 <a th:href="@{/product/show(skuid=${pr
阅读全文
摘要:<li class=""th:class="${page == pageNnm} ? 'active' : '' "> 说明:当page == pageNnm 两个属性相等时,class=‘active’ 不等时为 "", 既为空 动态添加 需要用到thymeleaf的条件表达式即 th:class
阅读全文
摘要:<div class="media" th:each="question:${questions}"> <div class="media-left"> <a href="#"> <img class="media-object img-rounded" th:src="${question.use
阅读全文
摘要:添加pom文件依赖 <dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> <version>1.18.16</version> <scope>provided</scope> </depen
阅读全文
摘要:【一】pom文件添加: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-jdbc</artifactId> </dependency> <dependency> <gro
阅读全文
摘要:示例: github.redirect.uri=http://localhost:8080/callbackjava代码中通过@Value注解读取配置: @Value("${github.redirect.uri}")private String redirectUri;
阅读全文