kagamihogeの日記

kagamihogeの日記です。

2017-01-01から1年間の記事一覧

WildFly 11 + Spring Boot

直近でWildFly 11でSpring Boot動かすのに調べたことのメモ。といっても、WildFlyプラスそのプロジェクト固有事情による設定とかの内容も混じっている。ただまぁ、自分用の作業ログなので余りそのへんは気にしない。 ソースコード https://github.com/kagami…

アトラス作品ファンのオフ会 真・眼鏡祭Ⅲ(2017/11/25)に行ってきた

11/25 真・眼鏡祭Ⅲ - 東京が死んで僕が生まれた - Twipla に行ってきました。当日の様子はTwitterのハッシュタグ 眼鏡祭1125から追えます。 眼鏡祭はアトラス作品ファンの大規模オフ会です。今回の参加者は200人強、一・二次会を含めるとほぼ一日かけてのイ…

JEP 307: Parallel Full GC for G1をテキトーに訳した

http://openjdk.java.net/jeps/307 をテキトーに訳した。 JEP 307: Parallel Full GC for G1 Owner Stefan Johansson Created 2017/01/17 11:40 Updated 2017/11/13 16:52 Type Feature Status Targeted Component hotspot?/?gc Scope Implementation Discus…

Spring Bootをeclipseのdynamic web projectとして実行する

spirng-bootには組み込みコンテナがあるので、開発時にアプリケーションサーバ上で動かしたいケースはアンマリ無いが、一応メモ。といっても、jarからwarに変更する際の手順をやればよいだけ。参照:https://docs.spring.io/spring-boot/docs/current/refere…

Difference between @RestController and @Controller Annotation in Spring MVC and RESTをテキトーに訳した

http://javarevisited.blogspot.jp/2017/08/difference-between-restcontroller-and-controller-annotations-spring-mvc-rest.html を読んだ。実はspringよく知らずに使っている。 Difference between @RestController and @Controller Annotation in Spring…

What does the InternalResourceViewResolver do in Spring MVC?をテキトーに訳した

http://javarevisited.blogspot.jp/2017/08/what-does-internalresourceviewresolver-do-in-spring-mvc.html を読んだ。 What does the InternalResourceViewResolver do in Spring MVC? InternalResourceViewResolverはSpring MVCフレームワークのViewResol…

WildFly 10のCache-Controlヘッダ変更

standalone.xmlの以下の箇所を編集する。 <subsystem xmlns="urn:jboss:domain:undertow:3.1"> <buffer-cache name="default"/> <server name="default-server"> <http-listener name="default" socket-binding="http" redirect-socket="https" enable-http2="true"/> </http-listener></server></buffer-cache></subsystem>

アトラス作品ファンのオフ会 真・眼鏡祭Ⅱ(2017/07/15)に行ってきた

7/15 真・眼鏡祭Ⅱ - TwiPla(開催済み)に行ってきました。これはその個人的なイベントレポートになります。当日の様子についてはtwitterのハッシュタグ #眼鏡祭0715から追えます。 【拡散お願い致します!】 7/15 真・眼鏡祭 マソーパレス攻略! https://t.…

JEP 305: Pattern Matchingをテキトーに訳した

2016/02/23 コメントを基に修正。 http://openjdk.java.net/jeps/305 をテキトーに訳した。 JEP 305: Pattern Matching Author Brian Goetz Owner Gavin Bierman Created 2017/05/30 19:48 Updated 2017/06/16 16:25 Type Feature Status Candidate Componen…

Spring BatchのCommandLineJobRunnerで任意の終了ステータスを返す

背景 たとえば、Spring BatchをCommandLineJobRunnerを使用するjavaコマンドで起動し、そのjavaプロセスの終了ステータスをシェルスクリプトで取得して何らかの条件分岐を行いたい、とする。基本的には、Spring Batchはその終了状態に応じて0,1,2を返すので…

WildFly 10でLogback使おうとして挫折した話

まとめ WildFly 10でLogback使うやり方がわからなかったのと、ログの要件がそんなにきつくなかったのでPer-deployment Loggingを使うことにした。 やったこと pom.xmlにLogbackの依存性を追加する。 <dependency> <groupId>ch.qos.logback</groupId> <artifactId>logback-classic</artifactId> <version>1.2.3</version> </dependency> <dependency> <groupId>org.slf4j</groupId> </dependency>

WildFly 10のドキュメントのLogging Configurationを読んだ

https://docs.jboss.org/author/display/WFLY10/Logging+Configuration を読んだ。 WildFly 10が持ってるログのとこ良く分からんなーという感じだったので読んだ。 Logging Configuration Overview 全体的なサーバのログ設定はlogging subsytemで指定します…

WildFlyでSpringのJTA設定

JTAの実体はWildFlyを使用してSpringの設定を行う。 環境 jdk1.8.0_131 Eclipse 4.6.3 WildFly Full 10.1.0.Final ubuntu 16.04 Oracle Database 11g Release 2(11.2.0.1.0) Enterprise Edition PostgreSQL 9.5.6 ojdbc6.jar postgresql-42.1.1.jar 事前準備…

Spring Security Reference 4.2.2のI. Prefaceをテキトーに訳した(2)

http://kagamihoge.hatenablog.com/entry/2017/05/17/234536 の続き。 5.8 Method Security version 2.0以降のSpring Securityではサービスレイヤーのメソッドにセキュリティを付与する機能が大幅に進化しました。フレームワーク固有の@Securedアノテーショ…

Spring Security Reference 4.2.2のI. Prefaceをテキトーに訳した(1)

Spring Security Reference http://docs.spring.io/spring-security/site/docs/4.2.2.RELEASE/reference/htmlsingle/ のI. Prefaceをなんとなく訳した。 Spring Securityちょっと勉強したいな、と読み始めたけどI. Prefaceは長めのチュートリアルって感じで…

アトラス作品ファン交流会の真・眼鏡祭(2017/04/16)に行ってきた

4/15 真・眼鏡祭https://t.co/4p7X5DKkHM 詳細につきましては明日目処にご連絡します。とかくは仮装参加の方は11時前、一般参加の方は12時前に新宿にたどり着けるよう調整ください。#眼鏡祭 pic.twitter.com/B3sx1UGfJh— マソー(真・眼鏡祭) (@muscle_bomb…

Apache Shiro Terminologyをテキトーに訳した

Apache Shiroのチュートリアルの一部で用語集に関する部分の https://shiro.apache.org/terminology.html をテキトーに訳した。 Apache Shiro Terminology この用語集を読み終えるには2分程度ですが、Shiroではこれらの用語の理解は重要です。以下の用語と概…

Apache Shiro Architectureをテキトーに訳した

Apache Shiroのチュートリアルの一部でアーキテクチャ概要に関する部分の https://shiro.apache.org/architecture.html をテキトーに訳した。 Apache Shiro Architecture Apache Shiroの設計目標は直感的で使いやすいようにアプリケーションセキュリティを単…

Java Authorization Guide with Apache Shiroをテキトーに訳した

Apache Shiroのチュートリアルの一部でAuthorizationに関する部分の https://shiro.apache.org/java-authorization-guide.html をテキトーに訳した。 Java Authorization Guide with Apache Shiro 認証もしくはアクセス制御とは、リソースへのアクセス権を特…

Java Authentication Guide with Apache Shiroをテキトーに訳した

Apache Shiroのチュートリアルの一部でAuthenticationに関する部分の https://shiro.apache.org/java-authentication-guide.html をテキトーに訳した。 Java Authentication Guide with Apache Shiro 認証とは本人確認のプロセスです。アプリケーション側で…

SQL Developer 4.2 Early Adopter 2のInstance ViewerのTop SQL

www.thatjeffsmith.com SQL Developerには4.1にinstance viewerというDBの現在の実行状態をグラフィカルに表示するツールが追加されている。4.2では更にTop SQLという機能が追加されるらしい。ので、実際に試してみる。instance viewerについは SQL Develope…

10 Minute Tutorial on Apache Shiroをテキトーに訳した

Apache Shiroはじめて見たけどよくわからんな~ということでチュートリアルを読んで訳した。 https://shiro.apache.org/10-minute-tutorial.html 10 Minute Tutorial on Apache Shiro Introduction これはApache Shiroの10分チュートリアルです。 シンプルな…

JEP 186: Collection Literalsをテキトーに訳した

http://openjdk.java.net/jeps/186 をテキトーに訳した。 JEP 186: Collection Literals Owner Brian Goetz Created 2013/06/20 20:00 Updated 2016/01/09 01:18 Type Feature Status Draft Component specification/language Scope JDK Discussion lambda d…

Javaでキャメルケースとスネークケースの文字列変換

環境 Java SE Development Kit 8u101 Eclipse Neon(4.6.1) IDE for Java EE Developers ソースコード Google Guava https://github.com/google/guava <dependency> <groupId>com.google.guava</groupId> <artifactId>guava</artifactId> <version>20.0</version></dependency>

JEP 301: Enhanced Enumsをテキトーに訳した

http://openjdk.java.net/jeps/301 をテキトーに訳した。 JEP 301: Enhanced Enums Owner Maurizio Cimadamore Created 2016/11/25 11:27 Updated 2016/12/08 18:51 Type Feature Status Candidate Component tools?/?javac Scope SE Discussion platform da…