will and way

ただの自分用メモを人に伝える形式で書くことでわかりやすくまとめてるはずのブログ

2014-01-01から1ヶ月間の記事一覧

Tomcat周りのログとslf4jのログの設定

Tomcatで出力されるログ リストがここにあった。そこで自分が開発してるアプリで使ってるのが ・catalina.out → Tomcatの起動・停止等のログが流れる。 ・localhost.[date] → JavaでのNullPointerExceptionやJSPのエラーなどがここに吐出される。 の2つ。 To…

slf4jの設定

1. pom.xmlに依存関係追加 <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-api</artifactId> <version>1.7.5</version> </dependency> <dependency> <groupId>org.slf4j</groupId> <artifactId>jcl-over-slf4j</artifactId> <version>1.7.5</version> <scope>runtime</scope> </dependency> <dependency> <groupId>…</groupid></dependency>

gitで追跡したくないファイルを設定する。

DBなどの設定ファイルなど、コミットしたくない場合の設定remoteの変更を受け入れる場合 #設定 git update-index --assume-unchanged hoge 受け入れない場合 git update-index --skip-worktree hoge

githubのコミットフックでredmineのリポジトリ更新

(pluginインストール済みの設定) hoge : gitリポジトリがある干すとネーム hogeorg : gitリポジトリの組織名 or ユーザー名 hogerepo : hogeorgによって管理されているリポジトリ 1. githubのdeploy keyを設定 sshkeyの作成 ssh-keygen -t rsa -N "" -f hoge…

Propertyファイルを複数選択する

複数読み込み <context:property-placeholder order="1" location="classpath:properties/hogehoge.properties" /> <context:property-placeholder order="2" location="classpath:properties/hugahuga.properties" /> 以上のようにして、複数ファイルを定義することが出来る。 hogehoge, hugahuga内に重複があるとSpringでは起動時にエラーになる。 肝はorder 環境…</context:property-placeholder></context:property-placeholder>