原创 Angular 6 學習二:第一個component和service

在angular目錄下創建項目blueprj: >ng new blueprj   Index.html->app.component.ts 2. 創建一個angular component: blue, >ng g componen

原创 springboot maven 子模( module)直接依賴定義

1. 創建基於maven的springboot工程bluesky 2.創建基於bluesky的模塊blcolors, blyellow, blred 3. blyellow, blred 依賴於blcolors,需要在blyellow,

原创 angular 6 學習五: httpclient

1. app/app.module.ts, 引入HttpClientModule import { BrowserModule } from '@angular/platform-browser'; import { NgModu

原创 window 10 下, docker container 端口配置,實現端口映射

window10, 目錄C:\ProgramData\Docker\containers\containerId, 修改後需要重新啓動docker 服務   弄個半個下午的血淚結果, 暈菜!  

原创 hibernate 類繼承

在使用JPA時, 表結構一樣,但不存在繼承關係。 用一個java類來定義結構, 子類只要生命表名稱即可。 這種情況下, 父類加註解@MappedSuperclass @MappedSuperclass public class B

原创 angular 6 學習三:創建link

1.>ng g component yellow 2.打開文件   blueprj\src\app\app.module.ts, 加入紅色部分 3. 編輯 文件blueprj\src\app\app.component.html, 在後

原创 spring cloud應用指定 server監聽端口

方法一:配置不同的環境文件, 參考 https://blog.csdn.net/lianghyan/article/details/103719306 方法二:啓動時加入參數--server.port java -jar   sfgser

原创 Angular 6 upload file to Rest controller

import { Component, OnInit } from '@angular/core'; import { FormBuilder,FormGroup } from '@angular/forms'; impor

原创 zuul 集羣

在Eureka集羣的基礎上, 啓動多個zuul實例 1.  zuul pom.xml <?xml version="1.0"?> <project xsi:schemaLocation="http://maven.apache.o

原创 搭建 eureka server 互爲peer

Mac OS中配置hosts: >sudo vi /etc/hosts 127.0.0.1       peer1 127.0.0.1       peer2 127.0.0.1       peer3   1. pom.xml <?x

原创 windows cmd 刪除文件參數

C:\blueclient\blueclient\dist>del/? 刪除一個或多個文件。 DEL [/P] [/F] [/S] [/Q] [/A[[:]attributes]] names ERASE [/P] [/F] [/S] [

原创 pathspec commit did not match any files known to git

引號居然也能出問題: C:\lysoftware\gitprj\fsdgit>git commit -m 'first commit' error: pathspec 'commit'' did not match any file(s)

原创 window 10: "docker build" requires exactly 1 argument.

在後面一定要加個 點  .  ,標識當前路徑