随笔分类 -  SpringBoot

摘要:使用 <a th:href="@{/product/add}" target="_blank">产品</a> 可以得到 <a th:href="/product/add" target="_blank">产品</a> 使用 <a th:href="@{/product/show(skuid=${pr 阅读全文
posted @ 2020-11-15 19:36 iTao0128 阅读(8020) 评论(0) 推荐(1) 编辑
摘要:<li class=""th:class="${page == pageNnm} ? 'active' : '' "> 说明:当page == pageNnm 两个属性相等时,class=‘active’ 不等时为 "", 既为空 动态添加 需要用到thymeleaf的条件表达式即 th:class 阅读全文
posted @ 2020-11-15 10:05 iTao0128 阅读(7730) 评论(0) 推荐(0) 编辑
摘要:<div class="media" th:each="question:${questions}"> <div class="media-left"> <a href="#"> <img class="media-object img-rounded" th:src="${question.use 阅读全文
posted @ 2020-11-11 22:34 iTao0128 阅读(3977) 评论(0) 推荐(0) 编辑
摘要:添加pom文件依赖 <dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> <version>1.18.16</version> <scope>provided</scope> </depen 阅读全文
posted @ 2020-11-08 10:30 iTao0128 阅读(207) 评论(0) 推荐(0) 编辑
摘要:【一】pom文件添加: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-jdbc</artifactId> </dependency> <dependency> <gro 阅读全文
posted @ 2020-11-04 07:35 iTao0128 阅读(100) 评论(0) 推荐(0) 编辑
摘要:示例: github.redirect.uri=http://localhost:8080/callbackjava代码中通过@Value注解读取配置: @Value("${github.redirect.uri}")private String redirectUri; 阅读全文
posted @ 2020-11-02 07:31 iTao0128 阅读(803) 评论(0) 推荐(0) 编辑
摘要:#修改tomcat的端口号server.port=8080 #config view resolver配置前端视图解析器spring.mvc.view.prefix=/pages/#spring.mvc.view.suffix=.jsp #config static resources配置静态资源访 阅读全文
posted @ 2020-09-27 07:52 iTao0128 阅读(577) 评论(0) 推荐(0) 编辑
摘要:package cn.java.controller; import org.springframework.stereotype.Controller;import org.springframework.web.bind.annotation.RequestMapping;import org. 阅读全文
posted @ 2020-09-25 07:35 iTao0128 阅读(358) 评论(0) 推荐(0) 编辑
摘要:package cn.java.controller; /* * 单独存在,只存放Springboot的启动程序 */import org.springframework.boot.SpringApplication;import org.springframework.boot.autoconfi 阅读全文
posted @ 2020-09-25 07:20 iTao0128 阅读(288) 评论(0) 推荐(0) 编辑
摘要:<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:sc 阅读全文
posted @ 2020-09-24 22:00 iTao0128 阅读(88) 评论(0) 推荐(0) 编辑
摘要:<project xmlns="http://maven.apache.org/POM/4.0.0"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/PO 阅读全文
posted @ 2020-09-24 21:30 iTao0128 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-09-23 15:05 iTao0128 阅读(29) 评论(0) 推荐(0) 编辑
摘要:在新建springboot项目时默认使用的是start.spring.io地址,修改自定义方式,地址改为https://start.aliyun.com 阅读全文
posted @ 2020-09-22 22:43 iTao0128 阅读(412) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示