原创 LeetCode 12 數字轉化爲羅馬符號(難度: Medium)

題目大意:數字轉化爲羅馬符號   Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M. Symbol Value

原创 LeetCode 02 兩個數字相加

2. Add Two Numbers    難度:Medium   You are given two non-empty linked lists representing two non-negative integers. The

原创 SpringBoot 中使用 thymeleaf 在 application.properties 中遇到的問題

spring.thymeleaf.content-type=text/html server.context-path=/thymeleaf 報錯,說此方法已經過時   原因:SpringBoot 2.0 版本之後進行了一些修改   解

原创 LeetCode 13 羅馬符號轉化爲數字(難度: Easy)

題目大意:羅馬符號轉化爲數字   Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M. Symbol Value

原创 LeetCode 09 判斷迴文數字(難度:Easy)

題目大意:判斷一個數字是不是迴文數字   Determine whether an integer is a palindrome. An integer is a palindrome when it reads the same ba

原创 LeetCode 11 盛最多水的容器(難度:Medium)

題目大意: 給定 n 個正整數 a1,a2,…,an,其中每個點的座標用(i, ai)表示。 畫 n 條直線,使得線 i 的兩個端點處於(i,ai)和(i,0)處。請找出其中的兩條直線,使得他們與 X 軸形成的容器能夠裝最多的水。 注意:

原创 Postman 測試各種類型入參傳值

文章目錄Postman 測試各種類型入參傳值1. 準備工作1-1. Postman 工具:1-2. 一個實體類 Student2. get 請求2-2. 入參爲id,Integer 類型3. post 請求3-1. 入參爲 Int

原创 SpringBoot 中使用 JSP

今天,在SpringBoot 中用了下 JSP , 總是不能跳轉到正常頁面。 依賴: <!-- servlet依賴. --> <dependency> <groupId>javax.servlet

原创 LeetCode 08 字符串轉換爲數字(難度:Medium)

題目大意:字符串轉換爲數字   Implement atoi which converts a string to an integer. The function first discards as many whitespace ch

原创 SpringBoot 項目部署到服務器上(Jar包)

1. 部署方式 Springboot 和普通web 應用程序不一樣,其本質上是一個 Java 應用程序,那麼又如何部署呢?  通常來說,Springboot 部署會採用兩種方式:全部打包成一個jar,或者打包成一個war。現在講一下打包成

原创 LeetCode 15 三數之和超詳細(難度:Medium)

題目大意:給定一個包含 n 個整數的數組 nums,判斷 nums 中是否存在三個元素 *a,b,c ,*使得 a + b + c = 0 ?找出所有滿足條件且不重複的三元組。