原创 二分法查找法學習筆記總結

1 二分法學習筆記總結 參考 https://leetcode-cn.com/problems/search-insert-position/solution/te-bie-hao-yong-de-er-fen-cha-fa-f

原创 算法題練習(8.19~8.25)

8.19-8.25 ZigZag Conversion https://leetcode.com/problems/zigzag-conversion/ Rotate Image https://leetcode.com/prob

原创 Spring筆記(5)- spring 表達式

1 Spring EL 表達式 1. 對<property>進行統一編程,所有的內容都使用value 2. <property name="" value="#{表達式}"> #{123}、#{'jack'} : 數字、字符串 #

原创 算法練習題(8.11~8.18)

1.給定一個鏈表1->100->2->99->5>97...,奇數位升序排列,偶數位降序排列,編寫代碼求出排序後的鏈表 2.有M個有序的數組,比如M=4,數組爲[1,3,5,7],[2,4,6,8],[1,5,6,7][2,8,9

原创 Spring筆記(11)—— AspectJ 測試(基於 xml)

1 AspectJ 介紹 AspectJ是一個基於Java語言的AOP框架 Spring2.0以後新增了對AspectJ切點表達式支持 @AspectJ 是AspectJ1.5新增功能,通過JDK5註解技術,允許直接在Bean類

原创 Spring筆記(8)——AOP

1 AOP介紹 AOP爲Aspect Oriented Programming的縮寫,意爲:面向切面編程,通過預編譯方式和運行期動態代理實現程序功能的統一維護的一種技術; AOP是OOP(面向對象編程)的延續,是軟件開發中的一個

原创 Spring筆記(9)—— Spring 半自動代理

1 AOP 聯盟通知類型 AOP聯盟爲通知Advice定義了org.aopalliance.aop.Advice;Spring按照通知Advice在目標類方法的連接點位置,可以分爲5類; 前置通知 org.springframe

原创 Leetcode練習(6.17~6.23)

6.17-6.23 Tree專題 MEDIUM https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal/

原创 Spring筆記(6)—— @Component註解

1 註解注入 註解:就是一個類,使用@註解名稱 開發中:使用註解 取代 xml配置文件 1.1 @Component @Component 取代 <bean class=""> @Component("id") 取代 <be

原创 Spring筆記(7)—— 使用註解 web-service-dao 配置流程

1 未使用註解 IUserDao package com.tzb.dao; import com.tzb.model.User; public interface IUserDao { public void a

原创 Spring筆記(10)—— Spring AOP全自動編程

1 AOP 全自動編程 導入 jar 包 AOP 配置 <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.o

原创 算法題練習(8.4~8.11)

1 本週題目 鏈表倒數第 K 個節點 https://www.nowcoder.com/practice/529d3ae5a407492994ad2a246518148a?tpId=13&tqId=11167&tPage=1&

原创 算法題練習(7.28~8.4)

1. 二叉樹的右視圖 https://leetcode.com/problems/binary-tree-right-side-view/ 2. 二叉搜索樹與與雙向鏈表 https://www.nowcoder.com/pra

原创 Spring筆記(4)-依賴注入 Bean屬性

1 手動裝配,xml 配置 User package com.tzb.model; public class User { private String username; private String p

原创 Spring筆記(3)- 裝配Bean的三種方式,Bean 作用域

1 裝配 Bean 方式(1) beans.xml <!-- 第一種方式,new 實現類--> <bean id="userService" class="com.tzb.service.UserServiceIm