原创 Consul7-註銷掉consul無效服務
當我們在Spring Cloud應用中使用Consul來實現服務治理時,由於Consul不會自動將不可用的服務實例註銷掉(deregister),這使得在實際使用過程中,可能因爲一些操作失誤、環境變更等原因讓Consul中存
原创 Consul5-springboot2使用consul做爲配置中心
之前有幾篇博客介紹了consul和springboot1.x,對於consul的下載,安裝配置不懂的可以看看 地址: Consul1-window安裝consul Consul2-使用consul作爲服務註冊和發現中心 Consul3-使
原创 Consul6-springboot2基於consul的服務調用
Consul1-window安裝consul Consul2-使用consul作爲服務註冊和發現中心 Consul3-使用consul作爲配置中心 Consul4-linux安裝consul以及集羣搭建 Consul5-springboo
原创 springboot2使用jedis連接redis
在springboot1.5.x版本中,springboot默認是使用jedis來操作redis的,但是在springboot2.x版本,默認是使用lettuce來操作數據庫,所以配置有些差別。具體的使用參照下面的步驟:
原创 36-Valid Sudoku
題目描述: Determine if a 9x9 Sudoku board is valid. Only the filled cells need to be validated according to the following r
原创 34-Find First and Last Position of Element in Sorted Array
題目描述: https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array/ Given an array of integers
原创 33-Search in Rotated Sorted Array
題目描述: https://leetcode.com/problems/search-in-rotated-sorted-array/ Suppose an array sorted in ascending order is rotat
原创 35-Search Insert Position
題目描述: https://leetcode.com/problems/search-insert-position/ Given a sorted array and a target value, return the index i
原创 38-Count and Say
題目描述: https://leetcode.com/problems/count-and-say/ The count-and-say sequence is the sequence of integers with the firs
原创 37-Sudoku Solver
題目描述: https://leetcode.com/problems/sudoku-solver/ Write a program to solve a Sudoku puzzle by filling the empty cells.
原创 vue+element-ui+axios+springboot實現文件上傳&下載
前端技術:vue,element-ui,axios 後臺技術:springboot 本篇博客只給出關鍵的代碼,提供思路,完全的涉及保密不方便提供 一,上傳: 上傳element組件代碼,支持多文件,拖動文件進行上傳: <!--選擇文件-
原创 29-Divide Two Integers
題目描述: https://leetcode.com/problems/divide-two-integers/ Given two integers dividend and divisor, divide two integers w
原创 30-Substring with Concatenation of All Words
題目描述: You are given a string, s, and a list of words, words, that are all of the same length. Find all starting indices
原创 32-Longest Valid Parentheses
題目描述: https://leetcode.com/problems/longest-valid-parentheses/ Given a string containing just the characters '(' and ')
原创 31-Next Permutation
題目描述: 題目地址:https://leetcode.com/problems/next-permutation/ Implement next permutation, which rearranges numbers into th