原创 修改谷歌和火狐瀏覽器滾動條的樣式

在css 文件裏定義樣式: .mat-tab-body-content {    ...  /*---------谷歌----------*/     &::-webkit-scrollbar {       width: 4px;   

原创 設置對話框頂端的小三角形

 (1) Html設置 <mat-menu #settingNotificationMenu="matMenu" class="aa">     <div class="triangle"></div>     ...   </mat-m

原创 angular用DatePipe進行日期轉換

angular中日期轉換爲要顯示的格式可以使用DatePipe: (1)HTML  <span *ngIf="CompareYear(notification.date) !== currentYear; else elseCurren

原创 CSS獲取當前可視屏幕的高度

vw (viewpoint width),視窗寬度,1vw=視窗寬度的1% vh (viewpoint height),視窗高度,1vh=視窗高度的1% calc() 函數用於動態計算長度值。支持 "+", "-", "*", "/" 運

原创 將mat-tab 設置爲button

在mat-tab中設置爲 disabled,然後再添加個button <mat-tab disabled>     <ng-template mat-tab-label>       <button mat-button color

原创 如何去掉iReport保存時自動添加的uuid

iReport 4.6.0及其之後的版本在保存的時候會自動添加uuid。保存後,重新打開jrxml文件的時候會報以下錯誤:  Error loading the report template Message:     net.sf.ja

原创 (PostgreSQL)利用string_agg()函數將單列多行數據組合成一行數據

原本: name rose ben susan           select string_agg(name,',') from user; 結果: name rose,ben,susan       注:name爲列名,user爲表

原创 iReport如何設置小數點的精確位

設置數字的小數點精確位的方法如下所示: 1、在Text field properties的Pattern點擊按鈕 2、選擇Number類型 3、在Decimal places設置數字小數部分的位數 4、如果要使用千分位分隔符,則勾選Use

原创 Thymeleaf的if和unless

Thymeleaf的if和unless用法,如下所示: <td th:if="${test.Score} gt 0 and ${test.Score} lt 60">不及格</td> <td th:unless="${test.Score

原创 thymeleaf判斷表達式

thymeleaf的判斷表達式如下所示: themeleaf 符號 備註 gt > great than(大於) ge >= great equal(大於等於) eq == equal(等於) lt < less than(小於) le

原创 刪除字符串裏的單引號

刪除字符串中的單引號,例子如下所示: String str = "'999'";   System.out.println(str); // '999' str = str.replace("'", ""); System.out

原创 解決failed to lazily initialize a collection of role: XX ,could not initialize proxy - no Session

報錯:org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: XX, could not initiali

原创 解決org.hibernate.loader.MultipleBagFetchException: cannot simultaneously fetch multiple bags

報錯:org.hibernate.loader.MultipleBagFetchException: cannot simultaneously fetch multiple bags 出錯原因:當(fetch = FetchType.E

原创 解決Elasticsearch的[FORBIDDEN/12/index read-only / allow delete (api)];]問題

Error: ElasticsearchException[Elasticsearch exception [type=cluster_block_exception, reason=blocked by: [FORBIDDEN/12/i

原创 IReport 解決The method decodeBase64(byte[]) in the type Base64 is not applicable for the arguments

ireport編譯時報以下錯誤: The method decodeBase64(byte[]) in the type Base64 is not applicable for the arguments (String) value