Fight the Future

Java言語とJVM、そしてJavaエコシステム全般にまつわること

2010-05-12から1日間の記事一覧

SpringですべてのメソッドにAOPでDebugInterceptorを適用する

<bean id="debugInterceptor" class="org.springframework.aop.interceptor.DebugInterceptor" /> <aop:config> <aop:advisor advice-ref="debugInterceptor" pointcut="execution(* .*(..))" /> </aop:config></bean>

TomcatでのJNDIのデータソース

<Context> <Resource name="jdbc/xxx" auth="Container" type="javax.sql.DataSource" username="xxxxx" password="xxxxx" driverClassName="com.mysql.jdbc.Driver" url="jdbc:mysql://localhost:3306/xxxxxx" /> </Context>

メソッドチェインするときのeclipseフォーマット設定

Java - Formatter →Qualified invocations →→Line wrapping policy →→→Wrap all elements, every element on a new line