忘了愛

导航

2021年1月11日 #

flex 介紹

摘要: 把分析工作分成兩個部分 詞法分析與與法分析 詞法分析:(lexical analysis 或 scanning) 語法分析:(syntax analysis 或 parsing) 詞法分析:把一行字轉化成有意義的詞塊,稱為記號(token) 語法分析:確定記號根記號之間如何關聯 詞法分析通常所做的事 阅读全文

posted @ 2021-01-11 04:54 忘了愛 阅读(59) 评论(0) 推荐(0) 编辑

2020年12月12日 #

css 使用calc解決 flex布局 父元素被子元素撐到高度溢出

摘要: 此案例中頭部區域 定義高度為60px 發生高度溢出 而且高度也沒到60px 後面把父容器移除 發現高度變為60px 高度對了 但是溢出還是存在 用 height: calc(100% - 60px); 把子容器減少60px 解決 /* container: 包裹整个栅格系统的容器 rows: 行 c 阅读全文

posted @ 2020-12-12 22:10 忘了愛 阅读(732) 评论(0) 推荐(0) 编辑

2020年12月11日 #

[自製腳本語言第三天]

摘要: public class Lexer { /** * 註解 * group(2) * 不放入queue * 匹配註解 //.* : 匹配 //任意字 //.* */ public static String annot = "(//.*)"; /** * NumToken * group(3) 小數 阅读全文

posted @ 2020-12-11 16:27 忘了愛 阅读(43) 评论(0) 推荐(0) 编辑

2020年12月6日 #

sql 函數

摘要: # 字符串拼接 concat() 阅读全文

posted @ 2020-12-06 15:26 忘了愛 阅读(24) 评论(0) 推荐(0) 编辑

2020年12月5日 #

影片物體辨識實入

摘要: Selective Search import cv2 vidcap = cv2.VideoCapture('big_buck_bunny_720p_5mb.mp4') success,image = vidcap.read() count = 0 while success: cv2.imwrit 阅读全文

posted @ 2020-12-05 16:55 忘了愛 阅读(56) 评论(0) 推荐(0) 编辑

cookie

摘要: 同類請求: 資源路徑相同的請求 cookie 同類請求才發送 阅读全文

posted @ 2020-12-05 15:04 忘了愛 阅读(52) 评论(0) 推荐(0) 编辑

2020年11月29日 #

我常用spring boot的配置

摘要: # mysql spring.datasource.url=jdbc:mysql://10.1.0.1:3306/blog?useUnicode=true&characterEncoding=utf8&useSSL=true&serverTimezone=GMT%2B8 spring.datasou 阅读全文

posted @ 2020-11-29 10:21 忘了愛 阅读(42) 评论(0) 推荐(0) 编辑

2020年11月27日 #

Spring boot 測試類

摘要: 添加spring-boot-starter-test依賴 添加@RunWith(SpringRunner.class)註解 添加@SpringTest Spring Booot 測試類的包名 必須跟main包名一樣 @SpringTest會自動去找含有@SpringBootApplication的類 阅读全文

posted @ 2020-11-27 16:37 忘了愛 阅读(43) 评论(0) 推荐(0) 编辑

Spring security

摘要: Spring security解決方法是 添加校验token 由于CSRF的本质在于攻击者欺骗用户去访问自己设置的地址,所以如果要求在访问敏感数据请求时,要求用户浏览器提供不保存在cookie中,并且攻击者无法伪造的数据作为校验,那么攻击者就无法再运行CSRF攻击。这种数据通常是窗体中的一个数据项。 阅读全文

posted @ 2020-11-27 15:23 忘了愛 阅读(61) 评论(0) 推荐(0) 编辑

2020年11月26日 #

Spring MVC 自動化配置

摘要: Spring MVC的自動化配置都在 WebMvcAutoConfiguration,因此對於默認的靜態資源過濾策略 阅读全文

posted @ 2020-11-26 14:20 忘了愛 阅读(57) 评论(0) 推荐(0) 编辑

2020年11月25日 #

spring boot 開發 部屬 切換properties

摘要: 當我們要平凡切換properties時可以這樣做 spring.profiles.active=prod 會替換中的佔位符成prod application-.properties application.properties spring.profiles.active=prod applicat 阅读全文

posted @ 2020-11-25 20:57 忘了愛 阅读(74) 评论(0) 推荐(0) 编辑

maven maven-resources-plugin 複製項目底下的檔案到target

摘要: <!--項目根目錄 移動到target--> <plugin> <artifactId>maven-resources-plugin</artifactId> <version>3.2.0</version> <executions> <execution> <id>copy-resources</ 阅读全文

posted @ 2020-11-25 17:09 忘了愛 阅读(88) 评论(0) 推荐(0) 编辑