原创 Angular 結合 ng-bootstrap分頁

方法請使用 (pageChange) 不要使用 (click) 否則導致page還沒改變就查詢了、 <ngb-pagination class="d-flex justify-content-center" [(page)]="page"

原创 html2canvas 在Angular引入問題

之前使用html2canvas的版本是1.0.0-rc.1 並且安裝@type/html2canvas,引入方式是 import * as html2canvas from 'html2canvas';這裏引用的@type/html2c

原创 Spring boot + Spring security 跨域鑑權失敗卻報跨域問題。

問題場景: Spring boot + Spring security 跨域鑑權失敗當我重寫  AuthenticationEntryPoint 的 commence 方法, @Component public class Custo

原创 Angular ngx-cookie-service 對於 cookie的 刪除等操作不生效

源自於: https://github.com/stevermeister/ngx-cookie-service/issues/5 主要取決於後端對於域名的cookie的設置路徑,如果你直接使用cookieService.delete('

原创 ng2-dragula 使用報錯 Uncaught ReferenceError: global is not defined

Angular2使用ng2-dragula實現拖拽功能報錯  ncaught ReferenceError: global is not defined     at Object../node_modules/crossvent/nod

原创 docker部署springboot項目出現java.io.FileNotFoundException: /xxxx/ xxxx(No such file or directory)

環境 阿里雲的centos部署的springboot項目,採用maven打的jar包。 項目中設計文件的上傳和下載,所以會有對於文件路徑的處理,但是在下載文件的時候一直會出現java.io.FileNotFoundException:  

原创 Rabbit MQ的Erlang下載

RabbitMQ和Erlang的版本需要對應匹配否則無法使用。 Erlang官網版本下載(https://www.erlang.org/downloads)。下載這個東西實在太慢了,能慢哭你信不,太難了。 各取所需! https://pa

原创 angularx-qrcode ERROR TypeError: Cannot read property '_android' of undefined

首先之前是Angular7 升級到Angular8 出現此問題。推測是升級導致,去npm官網看一下插件版本說明。   很明顯,意思我們要修改一下 tsconfig.json    修改即可。 通常版本升級會導致一系列問題,多分析問題原

原创 nginx 配置 判斷百度蜘蛛來確定是發揮Angular ssr 還是 Angular 客戶端渲染

因爲Angular 進行服務端渲染,但是渲染完之後的項目有一些問題,畢竟是在node裏面運行,所以用nginx進行判斷,如果是百度蜘蛛進行訪問,返回Angular ssr 服務端渲染,否則返回angular 客戶端渲染。 正常 Angul

原创 Angular 7 SSR 之後使用 node + nginx 部署在linux

沒看到網上詳細教程,自己搗鼓一會整出來了,首先是node部署項目本地啓動,然後nginx連接到本機即可。 1、linux 安裝node 安裝node 不多說,csdn找個教程,按照步驟來就行,不多說了。 2、安裝pm2 來支持項目持續後臺

原创 Linux -bash: pm2: command not found 及 forever:command not found解決方案

Linux -bash: pm2: command not found 及 forever:command not foun 無論是pm2還是forever都是一個原因,就是沒設置到系統的環境變量上面。 linux 輸入 echo $PA

原创 阿里雲的nginx 配置https遇見的問題總結!

1、 the "ssl" directive is deprecated, use the "listen ... ssl" directive instead in /etc/nginx/conf.d/default.conf: 開啓h