原创 位與和位或,以及十進制和二進制轉換?

1.位與& (二進制,位數值同爲1得1,否則得0),位或| (有一個1就得1;否則0). 比如101和100 與運算,結果是 100 101和100 或運算,結果是101 2.一般都是10進制的,比如 10&1是需要將十進制轉換二

原创 1.spring cloud簡單入門:結合springboot

首先,引入概念分佈式微服務.一般應用都是單體架構.所有的內容都是在一個項目模塊,部署在一個服務器上,假如用戶訪問量大了,服務器壓力大了怎麼辦? 你可以使用集羣,將同樣的項目COPY部署到多臺服務器上,負載均衡(比如nginx).

原创 7.shiro官網入門案例ini

之前的緩存redis整合有問題,雖然也可以用但是不能跨域不能sso單點登陸,所以決定一步步來先學最基礎的shiro再去整合springboot吧.下面開始入門! Quickstart.java 1.獲取正在執行的用戶: Subje

原创 8.shiro集成spring,web

1.web集成地址:http://shiro.apache.org/web.html 講述了怎麼配置web.xml filter等 已經jsp引入shiro標籤的使用 2.Apache Shiro集成到spring http:

原创 9.springboot2.X整合redis-shiro

1.整合有關redis依賴 <dependency> <groupId>org.apache.shiro</groupId> <artifactId>shiro-spring</

原创 6.springboot2.X整合redis-cache-shiro

1.案例中shrio 邏輯認證會頻繁的查詢數據庫,消耗性能 2.改造一下,把之前學習的緩存中間件拿來用 <!--shiro整合redis緩存,和之前的緩存不同--> <dependency> <groupId>org.cr

原创 3.springboot整合Shrio和Thymeleaf

1.添加pom.xml <dependency> <groupId>com.github.theborakompanioni</groupId> <artifactId>thymeleaf-extras-shir

原创 4.springboot整合shiro:MD5加密

接之前的案例 在shiroConfig添加幾個配置 1.加密配置 /** * 創建自定義配置的Realm */ @Bean CustomRealm myRealm() { CustomRealm customRealm

原创 2.springboot整合Shrio 02

1.pom.xml 和之前一樣 只是多加了阿里連接池 com.alibaba druid <!--thymeleaf--> <dependency> <groupId>org.springframework.boot</g

原创 1.springboot整合Shrio 01

1.準備一個web項目 加入web lombok thymeleaf shiro mybatis sqlconnector等支持 pom.xml <?xml version="1.0" encoding="UTF-8"?> <pr