摘要: <li class=""th:class="${page == pageNnm} ? 'active' : '' "> 说明:当page == pageNnm 两个属性相等时,class=‘active’ 不等时为 "", 既为空 动态添加 需要用到thymeleaf的条件表达式即 th:class 阅读全文
posted @ 2020-11-15 10:05 iTao0128 阅读(7866) 评论(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 阅读(4012) 评论(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 阅读(218) 评论(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 阅读(107) 评论(0) 推荐(0)
摘要: 示例: github.redirect.uri=http://localhost:8080/callbackjava代码中通过@Value注解读取配置: @Value("${github.redirect.uri}")private String redirectUri; 阅读全文
posted @ 2020-11-02 07:31 iTao0128 阅读(818) 评论(0) 推荐(0)
摘要: 本地有代码时提交至git仓库。修改本地工作空间.git/config文件,添加 [user] name = xxx email = xxx@qq.com 命令git init git add . git commit -m "first commit" git branch -M main git 阅读全文
posted @ 2020-10-29 08:03 iTao0128 阅读(221) 评论(0) 推荐(0)
摘要: <?xml version="1.0" encoding="UTF-8"?> <!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the 阅读全文
posted @ 2020-10-27 22:16 iTao0128 阅读(7479) 评论(0) 推荐(1)
摘要: clone指定分支(克隆 dev 分支的代码) git clone --branch dev https://github.com/username/repository.git ①git status:命令用于显示工作目录和暂存区的状态。使用此命令能看到那些修改被暂存到了, 哪些没有, 哪些文件没 阅读全文
posted @ 2020-10-27 08:07 iTao0128 阅读(112) 评论(0) 推荐(0)
摘要: ①点击add a new public key,添加一个密钥 ②点击SSH and GPG Keys ③点击generating SSH keys ④点击adding a new ssh key ⑤打开下面2个链接 ⑥右键打开【Git Bash Here】,输入 ssh -keygen -t rsa 阅读全文
posted @ 2020-10-25 09:59 iTao0128 阅读(399) 评论(0) 推荐(0)
摘要: 一、进入idea官网选择想要下载的版本 官网版本选择页面: https://www.jetbrains.com/idea/download/other.html IntelliJ IDEA 分为两个版本,分别为:旗舰版(Ultimate)和社区版(Community)。 这里我选择了 2018.3. 阅读全文
posted @ 2020-10-23 08:09 iTao0128 阅读(13919) 评论(2) 推荐(1)