とあるエンジニアの備忘録

SE・コンサルタントの備忘録

JAVA 備忘

install

ubuntu

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java9-installer

java -version
sudo apt-get install oracle-java9-set-default

echo $JAVA_HOME

削除

ubuntu

sudo apt-get -y remove oracle-java9-installer
 set-defaultも一緒に削除される

Burp suite

install

DL:Download Burp Suite
※Free版はScanner機能はついていない

実行

  java -jar burpsuite_free_v1.6.01.jar

設定

使用しているブラウザに、proxyサーバー経由でリクエストするように設定する

 Fire fox : setting > add-on > extensions > FoxyProxy standard をインストール
 FoxyProxyでIP:[localhostIPアドレス]  , PORT:[8080]
 を設定 

anonymousFTP

anonymousFTP

FTP:File Transfer Protocol、離れた計算機同士でのファイル転送を行うためのプロトコル
 主な内容はRFC959に記載されている。 FTPでは、転送を行う前にログイン認証が必要であるがログイン/パスは暗号化されず、ネットワーク上でやりとりされる。
 
 自分のPCにあるファイルを、複数のPCへ配布したい場合を考える。
 対象のPCからFTPでログインできるよう、自分のPCにログイン用アカウントを用意しておく必要があるが、ネットワーク上ではログイン/パス交換は暗号化されずにやりとりされ、またアカウントの管理が必要となってくる。FTPにより、自分のPCにある不要なファイルへのアクセスまでされる可能性もでてくる。
 そこで、外部からのFTPログイン用にanonymousアカウントを作り、アクセスできるファイルを制限しておく。それがanonymousFTPである
 

参照:
https://www.ietf.org/rfc/rfc959.txt
AnonymousFTP
TCP/IP - FTPとは

git 備忘

環境:ubuntu

git install sa

sudo apt-get -y install git

リポジトリをclone

 git clone

localでリポジトリ作成しremoteにpush

touch README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin git@github.com:ID名/~.git
git push -u origin master

localからremoteにpush

git remote add origin git@github.com:ID名/~.git
git push -u origin master

remote にpush

git push origin master

local へのコミット

git add *
git commit -m

JPAとJDBC

JDBC :

 JavaからDBを操作するAPIJDKのコアAPIとしてjava.sqlパッケージに実装されている
参照:Java Solution FAQ:JDBCとは何でしょうか?

JPA :java persistance API

永続化およびオブジェクトとリレーショナルのマッピング管理用のJava APIの仕様
参照:JPA 2.0入門 (WebLogic Channel)

Webアプリケーション作成3 spring boot

spring boot で作成

参考:
Spring Bootで高速アプリ開発 | Developers.IO

Spring BootによるWebアプリお手軽構築 - Taste of Tech Topics

spring-boot - SpringBoot(with Thymeleaf)チートシート[随時更新] - Qiita

Tutorial: Using Thymeleaf (ja)