李羅

@LeeLo

Joined on May 10, 2019

  • 一、建立檔案 .gitignore //不上傳檔案 二、指令 git --version //檢查版本 git init //初始化git git add [--all] //加入檔案 git add -f [filename] //強制加入檔案 git commit -m "mag" //建立儲存檔 git config user.name "name" //使用者名稱
     Like  Bookmark
  • SQL MongoDB 說明 database database 資料庫 table collection
     Like  Bookmark
  • 專案架構 com.zygroup.ilnd config CustomerConfig 第一個資料庫Config ProductConfig 第二個資料庫Config model 第一個資料表
     Like  Bookmark
  • /pom.xml <!-- https://github.com/google/guava --> <dependency> <groupId>com.google.guava</groupId> <artifactId>guava</artifactId> <version>28.1-jre</version> </dependency> Guava is a set of core Java libraries from Google that includes new collection types (such as multimap and multiset), immutable collections, a graph library, and utilities for concurrency, I/O, hashing, caching, primitives, strings, and more! It is widely used on most Java projects within Google, and widely used by many other companies as well. https://github.com/google/guava
     Like  Bookmark
  • {home_url}/.m2/settings.xml <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"> <activeProfiles> <activeProfile>github</activeProfile> </activeProfiles>
     Like  Bookmark
  • 一台 DNS 伺服器怎麼可能知道這麼多網址對應的 IP 位址是什麼呢?為了要解決這個問題,我們把全世界所有的網址區分為許多不同的「網域(Domain)」,並且定義了不同的層級 根網域(Root domain) 根網域是 DNS 架構最上層的伺服器,全球共約 16 台,當下層的任何一台 DNS 伺服器無法查出某個網址對應的 IP 位址時,則會向最上層負責根網域的 DNS 伺服器查詢 頂層網域(Top level domain) 使用國際標準組織(ISO)所制定的國碼(Country code)來區分頂層網域 例如:us、tw、jp
     Like  Bookmark
  • 標籤 @Target:限定 Annotation 使用對象 使用對象 TYPE 適用 class, interface, enum FIELD
     Like 1 Bookmark
  • Windows 版的 Redis server 到這裡下載免費的。 Windows 版的 Redis clients (GUI) https://github.com/uglide/RedisDesktopManager/releases/download/0.8.8/redis-desktop-manager-0.8.8.384.exe https://rdbtools.com/docs/install/windows/ MacOS 安裝與執行 Redis Server 需先安裝 Homebrew 套件
     Like  Bookmark
  • 名詞解釋 ACL 為 Access-Control List 的縮寫;而 access control 則: 是指允許或禁止某人使用某項資源的能力。 包含了 authentication、authorization 以及 audit。 anonymous Overview It’s generally considered good security practice to adopt a "deny-by-default" where you explicitly specify what is allowed and disallow everything else. Defining what is accessible to unauthenticated users is a similar situation, particularly for web applications. Many sites require that users must be authenticated for anything other than a few URLs (for example the home and login pages). In this case it is easiest to define access configuration attributes for these specific URLs rather than have for every secured resource. Put differently, sometimes it is nice to say ROLE_SOMETHING is required by default and only allow certain exceptions to this rule, such as for login, logout and home pages of an application. You could also omit these pages from the filter chain entirely, thus bypassing the access control checks, but this may be undesirable for other reasons, particularly if the pages behave differently for authenticated users.
     Like  Bookmark
  • 一、資料庫 @Entity 聲明這個class為實體類,class name即為資料表表名 @Table 可以為資料表、目錄、模型(schema)指定名稱 uniqueConstraints 設定唯一值 @UniqueConstraint(columnNames = {"name"})
     Like 3 Bookmark
  • 怎樣學 Flutter 建置環境,安裝 IDE 與 SDK 學習 Dart 程式語言與慣例 動手寫一個 Flutter App 上手 熟悉 Flutter Widget 熟悉 Flutter 的重要 Pattern 與更新機制 練習寫 Dart Package 練習寫 Flutter Plugin
     Like  Bookmark
  • 撰寫dart原始碼會及時產生android檔案與ios檔案在各自資料夾 Framework框架(Dart): 平台: Marerial(android) Cupertino(ios) 元件(widgets):
     Like  Bookmark
  • 一、指令介紹 1.設置Heroku環境 //登入heroku heroku login //下載應用程式 git clone https://github.com/heroku/java-getting-started 2.部屬Heroku //建立Heroku
     Like  Bookmark
  • 使用方法 修改pubspec.yaml 輸入語法flutter pub get 程式碼中加入import Package Dart套件網址:https://pub.dev/ 參數 name:資料夾名稱(重要)
     Like  Bookmark
  • 簡介 Kotlin是一種在Java虛擬機上執行的靜態型別程式語言 它也可以被編譯成為 JavaScript 原始碼 它主要是由俄羅斯聖彼得堡的 JetBrains 開發團隊所發展出來的程式語言 雖然與 Java 語法並不相容,但Kotlin被設計成可以和Java程式碼相互運作,並可以重複使用如 Java 集合框架等的現有Java類別館。 Hathibelagal 寫道,「如果你正在為 Android 開發尋找一種替代程式語言,那麼應該試下 Kotlin。它很容易在 Android 專案中替代 Java 或者同 Java 一起使用。」 歷史
     Like  Bookmark
  • 介紹 1.主要在儲存和傳輸數據 2.實現自我描述 3.w3c標準 4.跟html之前差別,xml注重傳輸數據,html注重顯示數據 預定義的實體引用 &lt; < less than &gt; > greater than
     Like  Bookmark
  • 在實際應用中,資料查詢的條件常常是多變性的,也就是無法100%完全預測使用者所下的限制,所以得使用 Criteria API 以滿足動ㄍㄜˋ態ㄓㄨㄥˇ搜ㄕㄞ尋ㄒㄩㄢˇ條ㄒㄩ件ㄑㄧㄡˊ。首先 repository 得繼承 JpaSpecificationExecutor<T>JavaDoc @Repository public interface SomeoneRepository extends JpaRepository<Someone, Long>, JpaSpecificationExecutor<Someone> { } 使其支援 public long count(Specification<T> spec) 根據 Specification 回傳符合的資料集數量。
     Like  Bookmark
  • /pom.xml 需要注入thymeleaf套件 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-thymeleaf</artifactId> </dependency> /src/main/java/{package}/WebMvcConfigurer 加入 @Bean 與 攔截器
     Like  Bookmark
  • IoC/DI 分別是 Inversion of Control (控制反轉) 與 Dependency Injection (依賴注射) 這兩個單字的合體,字面上看起來實在是有點繞口。簡單的說,IoC (Inversion of Control) 控制反轉是一種物件導向程式設計的概念,主要的目的也是為降低系統耦合度(coupling),將程式中的控制邏輯進行移轉,讓程式碼之間的控制關係簡化。IoC 這個詞聽起來實在是太玄了,其中最常見的實作技巧就是 DI (Dependency Injection) 依賴注射設計模式 (Design Pattern),可以讓你的程式架構進行解耦合(Decoupling),更容易實現可以動態組合的模組化架構。 public class Computer { private Keyboard keyboard; public Computer() { } //Getters and Setters public getKeyBoard(){ return this.keyboard;
     Like  Bookmark
  • ER-Model 項目的目錄結構 src/main/ java/com/xxx/ controller:控制層 dto:數據傳輸物件
     Like  Bookmark