約 2,401,780 件
https://w.atwiki.jp/ce00582/pages/279.html
6 print (1)文法 参考文献 (2)プログラム ex22
https://w.atwiki.jp/solutionlog/pages/14.html
Sprint Core The IoC container Aspect Oriented Programming with Spring Spring Expression Language (SpEL) Transaction Management DAO support Data access with JDBC Testing Spring Security Getting Started
https://w.atwiki.jp/kojiro/pages/566.html
https://w.atwiki.jp/roguren/pages/19.html
Javaではなかなか使われない、printfについて。 JavaでのDOS画面への出力には、print or println を使用することが多いと思います。 他の方法を知っておいてもいいかもということで、メモ的に書いておきます。 実はprintf。 これ一つで文字列から数値まであらゆるデータを書式化して表示するという、多機能な一面を持っています。 printlnと似た感じで使えます。 ちょっと違いますけど…。 ものそい簡単に言うと System.out.printf("書式指定", 変数や定数); でしょうか。 ちょっと違いますね。面倒が無くて楽な部分もあります。 特に違うのは、エスケープシーケンスの部分でしょうか。 ¥n → %n こんなふうに、¥ではなくて%で表示します。 ¥でも出来ますが。 実際どう使うの?ってなると… System.out.printf("今日は %d日です。%n", 20); 今日は20日です。 こんな感じでしょうか。 %dの部分は、記述子とか何とか呼ばれます。 良く使うのだと… %d ・・・10進数の整数 %f ・・・小数 %c ・・・文字 %s ・・・文字列 このあたりでしょうか。 でもね。 何が凄いって! 桁数合わせられるんですよ、実は! %3d→3桁 とか。 注意点は改行されないことでしょうか。 お試しあれ。
https://w.atwiki.jp/introintrod/pages/341.html
PRINCE 概要 恐らく30代。2ちゃんねる公式ガイドブックに、その名が掲載されたの行殺軍団員幹部。 行殺のもとには、行殺の魅力に引き寄せられた者達が集い いつしか徒党を組み、自己板で勢力を振るうこととなった。その名は行殺軍団。 当時、全盛期だったhigherと愉快な仲間達が陽なら、行殺軍団は陰。 二つの巨大勢力は、衝突こそ免れたものの、いつ戦争が起きてもおかしくない状態だった(って、まきひとが言ってた) 行殺軍団は一時期、分裂の危機を迎えていた。 幹部PRINCEと同じく幹部の外道クジラ VS イテ姫と特厨非FAN 夜の訪れと共に、彼らの戦いは始まり 朝の光と共に終わりを迎える。 何故、彼らが争いを始めたのかは分からない。何故、彼らがイテ姫を捕らえようとしていたのか分からない。 何が何だか分からない。本人達も分からない。それが彼ら、行殺軍団なのである(って、まきひとが言ってた) 戦いが終わり… イテ姫と特厨非FANとの戦いが終わり、PRINCEは自己板の治安隊長を志願する。 敵のアンチが蔓延るスレに奇襲をかけてアンチを説得 場合によっては成敗するという案を考える。だが、その案を支持する者はなく 彼は治安部隊を去ることとなった。 それから時は流れて…結婚が決まった彼は婚約者と共に 新たに『PRINCE軍団』をリアルで作ることとなった(終) 名言 『自己板の治安を守りたい!』 交流関係 行殺 葵 黒小麦 紅茶 外道クジラ イテ殺 特厨非FAN higher まぞっち まきひと 所属 行殺軍団?(リンク未作成;;) コメント 名前 コメント PRINCEの52%は保存料で出来ています。PRINCEの30%はミスリルで出来ています。PRINCEの16%は鉛で出来ています。PRINCEの2%は度胸で出来ています。 - 固定ハンドル名簿へ ふふふ!このページ見てるのは、お前だ!俺には分かるぞ!!!! お知らせ 特にありません^^ ニュースカテゴリ新着
https://w.atwiki.jp/bg1wiki/pages/31.html
機能 変数の値やリテラルなどを指定の書式で標準出力に出力する。 書式 #include stdio.h /* 標準入出力を扱うヘッダ */ int printf(const char *format, ...); 書式指定子 %d 符号つき整数値(10進数)として出力 %u 符号なし整数値(10進数)として出力 %f 実数値として出力 %lf 倍精度実数値として出力 %c 文字として出力 %s 文字列として出力 %x 整数値(16進数)として出力 %p ポインタ(アドレス)として出力 書き方 リテラルを表示する場合 printf("%d,%f,%c", 25, 1.23, A ); 変数を表示する場合 printf("%d,%f,%c", i, f, c); 文字列リテラルの場合 printf("string only"); ソースコード printfプロジェクト
https://w.atwiki.jp/ankundora/pages/20.html
「printf」のページです まずはこのプログラムを入力してみましょう #include stdio.h int main(){ printf("Hello World\n"); return 0; } そしたら"Ctrl"+"F5"を押してください imageプラグインエラー ご指定のURLはサポートしていません。png, jpg, gif などの画像URLを指定してください。 こう表示されたと思います 今回は printf("Hello World\n"); この部分をやります もう気付いているかもしれませんがこれ「Visual C++」のヘルプで検索してみると 「printf 標準出力ストリームに書式付きで出力します」 と書いてあります 簡単に言うと画面に文字を書くというような事です 書き方は printf("表示したい言葉(プログラムでは文字列と言います)"); です また、printfのようなそのプログラムによって何かの処理をするものを「関数」といいます 最後に「¥n」と書いてあるのに、画面に表示されていないのは 「¥n」のように「¥」から始まる決まった単語を「エスケープシーケンス」といい、特殊な文字だからです ¥a ベル文字(アラート) ¥b 1文字分戻る ¥f ページ送り(クリア) ¥n 改行、復帰 ¥r 同じ行の先頭に戻る ¥t 水平タブ ¥v 垂直タブ ¥¥ ¥を表示 ¥? ?を表示 ¥ シングルクォーテーション( )を表示 ¥" ダブルクォーテーション(")を表示 ¥0 ヌル ¥N 8進定数(Nは8進数の定数) ¥xN 16進定数(Nは16進数の定数) 主にこのようなエスケープシーケンスがあります(これは全角になっています)
https://w.atwiki.jp/naobe/pages/68.html
OpenSourceに戻る Spring概要 DIxAOPコンテナ DIを使い、疎な結合でクラスを注入する。DIを使っているため注入される上位層クラスのソースを修正しないで、下位層のクラスを取替え可能。よって下位層を改造しても上位層をテストする必要がない(変更に強い)。 Singletonを使わないで、単一インスタンスを提供する(デフォルト機能)。 宣言的なトランザクション機能を持ち、AOPを使ってトランザクションをビジネスロジックと切り離して実装できる。 AOP(Aspect-Oriented Programming)。ソースを変更しないで、横断的(【例】あるパターンを持ったメソッド全て)に機能(ログ、トランザクション、例外処理、キャッシュなど)を追加する。 使用したバージョン フレームワーク バージョン spring 3.0.1 ibatis 2.3.4 Bean定義ファイル Bean定義の大本となるファイル。services.xmlはクラスパス。後の2つのファイルは、このファイルのディレクトリからの相対パス。 beans import resource="services.xml"/ import resource="resources/messageSource.xml"/ import resource="/resources/themeSource.xml"/ bean id="bean1" class="..."/ bean id="bean2" class="..."/ /beans クラスパスを使う場合は、"classpath /resources/themeSource.xml"と記述する。絶対パスを使う場合は、"file C /config/aaa.xml"と記述する。 Log4j web.xmlに以下を追加。 context-param param-name log4jConfigLocation /param-name param-value /WEB-INF/classes/resource/log4j.xml /param-value /context-param listener listener-class org.springframework.web.util.Log4jConfigListener /listener-class /listener iBatis2.Xとの結合 ビーン定義ファイル 配置 WEB-INF/app-bean-context.xml 記述 ?xml version="1.0" encoding="UTF-8"? beans xmlns="http //www.springframework.org/schema/beans" xmlns xsi="http //www.w3.org/2001/XMLSchema-instance" xmlns context="http //www.springframework.org/schema/context" xsi schemaLocation="http //www.springframework.org/schema/beans http //www.springframework.org/schema/beans/spring-beans-3.0.xsd http //www.springframework.org/schema/context http //www.springframework.org/schema/context/spring-context-3.0.xsd " !-- プレースホルダプロパティファイル設定 -- context property-placeholder location="classpath resource/ibatis/config.properties"/ bean id="dataSource" class="org.apache.tomcat.dbcp.dbcp.BasicDataSource" destroy-method="close" property name="driverClassName" value="${jdbc.driverClassName}" / property name="url" value="${jdbc.url}" / property name="username" value="${user}" / property name="password" value="${passwd}" / /bean bean id="sqlMapClient" class="org.springframework.orm.ibatis.SqlMapClientFactoryBean" property name="configLocation" value="WEB-INF/classes/resource/ibatis/kakeiboMapConfig.xml" / property name="dataSource" ref="dataSource" / /bean bean id="kakeiboDao" class="suna.screen.kakeibo.dao.KakeiboDaoImpl" property name="sqlMapClient" ref="sqlMapClient"/ /bean /beans プロパティファイル パス WEB-INF/classes/resource/config.properties 記述 user = user passwd = passwd jdbc.driverClassName = com.ibm.db2.jcc.DB2Driver jdbc.url = jdbc db2 //localhost 50000/suna DAOクラス public class KakeiboDaoImpl extends SqlMapClientDaoSupport implements KakeiboDao { public List Incident selectIncident() { return getSqlMapClientTemplate().queryForList(SELECT_INCIDENT); } } SQLマップ設定ファイル パス WEB-INF/classes/resource/ibatis/kakeiboMapConfig.xml ビーン定義ファイル参照 記述 ?xml version="1.0" encoding="UTF-8" ? !DOCTYPE sqlMapConfig PUBLIC "-//ibatis.apache.org//DTD SQL Map Config 2.0//EN" "http //ibatis.apache.org/dtd/sql-map-config-2.dtd" sqlMapConfig sqlMap resource="resource/ibatis/mapper/incidentMapper.xml" / sqlMap resource="resource/ibatis/mapper/shusiNameMapper.xml" / /sqlMapConfig SQLマップファイル パス resource/ibatis/mapper/incidentMapper.xml クラスパス。 記述 ?xml version="1.0" encoding="UTF-8" ? !DOCTYPE sqlMap PUBLIC "-//ibatis.apache.org//DTD SQL Map 2.0//EN" "http //ibatis.apache.org/dtd/sql-map-2.dtd" sqlMap typeAlias alias="Incident" type="suna.screen.kakeibo.dao.Incident" / resultMap id="incidentResult" class="Incident" result property="incid" column="incid" / result property="incdate" column="incdate" / result property="shusiname" column="shusiname" / result property="nametype" column="nametype" / result property="namedetail" column="namedetail" / result property="price" column="price" / /resultMap select id="selectIncident" resultMap="incidentResult" select inc.INCID incid, inc.INCDATE incdate, name.NAME shusiname, name.NAMETYPE nametype, detail.NAMEDETAIL namedetail, inc.PRICE price from INOUTNAME name, INOUTDETAIL detail, INCIDENCE inc where inc.NAMEID = name.NAMEID AND inc.NAMEDETAILID = detail.NAMEDETAILID /select /sqlMap SpringWEBアプリケーション適用 トランザクション AOPを使ったトランザクション制御 設定ファイルを修正するだけで、トランザクションの追加が可能。設定したインタフェースの 特定のパターンのメソッド実行前後にトランザクションのビギン、コミットを実行するように設定する。 設定例は以下。interfaceのselectで始まるインタフェースを実行したときにread-onlyのトランザクションを 実行。select以外は、read-write。 AOP関係のjarがSpringにないため以下のサイトからaspectj-1.6.11.jarをダウンロード。 解凍してlibディレクトリ以下のjarファイルをインポート。 http //www.eclipse.org/aspectj/downloads.php 【インタフェース】 package suna.screen.kakeibo.dao; public interface KakeiboDao { List Incident selectDayIncident(Calendar day, int type); List Map String, Object selectInout(); List Map String, Object selectInout(int type); List Map String, Object selectDetail(); void insertIncident(int year, int month, int day, String nameId, String detailId, int price); void deleteIncident(String[] incidentId); void insertInoutName(String name, String shusi); void insertInoutDetail(String detail); void deleteInoutName(String komoku); void deleteInoutDetail(String komoku); List IncidentSummary selectMonthSummary(int year, int month, int kubun); } 【ビーンコンテキスト設定ファイル】 ?xml version="1.0" encoding="UTF-8"? beans xmlns="http //www.springframework.org/schema/beans" xmlns xsi="http //www.w3.org/2001/XMLSchema-instance" xmlns context="http //www.springframework.org/schema/context" xmlns aop="http //www.springframework.org/schema/aop" xmlns tx="http //www.springframework.org/schema/tx" xsi schemaLocation="http //www.springframework.org/schema/beans http //www.springframework.org/schema/beans/spring-beans-3.0.xsd http //www.springframework.org/schema/context http //www.springframework.org/schema/context/spring-context-3.0.xsd http //www.springframework.org/schema/tx http //www.springframework.org/schema/tx/spring-tx-3.0.xsd http //www.springframework.org/schema/aop http //www.springframework.org/schema/aop/spring-aop-3.0.xsd" !-- プレースホルダプロパティファイル設定 -- context property-placeholder location="classpath resource/ibatis/config.properties"/ !-- トランザクションAOPアドバイス -- tx advice id="txAdvice" transaction-manager="txManager" !-- the transactional semantics... -- tx attributes !-- selectで始まるメソッド -- tx method name="select*" read-only="true" propagation="REQUIRED"/ !-- select以外デフォルト設定(read-only false つまり、read-write) -- tx method name="*" propagation="REQUIRED"/ /tx attributes /tx advice !-- AOPポイントカット -- aop config !-- KakeiboDaoインタフェースの全てのメソッドに対してtxAdviceを適用 -- aop pointcut id="kakeiboOperation" !-- expressionについては、http //www.eclipse.org/aspectj/doc/released/progguide/index.html参照 execution call, within , withincode とも書ける。 callは、再起呼び出しでも呼ばれるが、executionはNG。他にも違いはあるが詳細は不明。 第1引数:メソッドの戻り値 第2引数:クラス.メソッド(引数) 適用するメソッドをパターンで特定している。 -- expression="execution(* suna.screen.kakeibo.dao.KakeiboDao.*(..))" / aop advisor advice-ref="txAdvice" pointcut-ref="kakeiboOperation" / /aop config !-- Tomcatコネクションプール設定 -- bean id="dataSource" class="org.apache.tomcat.dbcp.dbcp.BasicDataSource" destroy-method="close" property name="driverClassName" value="${jdbc.driverClassName}" / property name="url" value="${jdbc.url}" / property name="username" value="${user}" / property name="password" value="${passwd}" / /bean bean id="txManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager" property name="dataSource" ref="dataSource"/ /bean bean id="sqlMapClient" class="org.springframework.orm.ibatis.SqlMapClientFactoryBean" property name="configLocation" value="WEB-INF/classes/resource/ibatis/kakeiboMapConfig.xml" / property name="dataSource" ref="dataSource" / /bean bean id="kakeiboDao" class="suna.screen.kakeibo.dao.KakeiboDaoImpl" property name="sqlMapClient" ref="sqlMapClient"/ /bean /beans 【実行結果】 (1)select実行時 2011.4.26 16 41 16.078 DEBUG DefaultListableBeanFactory[http-8080-1] - Returning cached instance of singleton bean ka keiboDao 2011.4.26 16 41 16.125 DEBUG DataSourceTransactionManager[http-8080-1] - Creating new transaction with name [suna.scre en.kakeibo.dao.KakeiboDao.selectDayIncident] PROPAGATION_REQUIRED,ISOLATION_DEFAULT,readOnly 2011.4.26 16 41 22.906 DEBUG DataSourceTransactionManager[http-8080-1] - Acquired Connection [jdbc db2 //localhost 500 00/suna, UserName=suna, IBM DB2 JDBC Universal Driver Architecture] for JDBC transaction 2011.4.26 16 41 22.921 DEBUG DataSourceUtils[http-8080-1] - Setting JDBC Connection [jdbc db2 //localhost 50000/suna, UserName=suna, IBM DB2 JDBC Universal Driver Architecture] read-only 2011.4.26 16 41 23.093 DEBUG DataSourceTransactionManager[http-8080-1] - Switching JDBC Connection [jdbc db2 //localho st 50000/suna, UserName=suna, IBM DB2 JDBC Universal Driver Architecture] to manual commit 2011.4.26 16 41 23.093 DEBUG TransactionSynchronizationManager[http-8080-1] - Bound value [org.springframework.jdbc.da tasource.ConnectionHolder@a166bd] for key [org.apache.tomcat.dbcp.dbcp.BasicDataSource@119db9e] to thread [http-8080-1 ] 2011.4.26 16 41 23.093 DEBUG TransactionSynchronizationManager[http-8080-1] - Initializing transaction synchronization 2011.4.26 16 41 23.093 DEBUG TransactionInterceptor[http-8080-1] - Getting transaction for [suna.screen.kakeibo.dao.Ka keiboDao.selectDayIncident] 2011.4.26 16 41 23.093 DEBUG SqlMapClientTemplate[http-8080-1] - Opened SqlMapSession [com.ibatis.sqlmap.engine.impl.S qlMapSessionImpl@ea443f] for iBATIS operation 2011.4.26 16 41 23.109 DEBUG SqlMapClientTemplate[http-8080-1] - Obtained JDBC Connection [Transaction-aware proxy for target Connection from DataSource [org.apache.tomcat.dbcp.dbcp.BasicDataSource@119db9e]] for iBATIS operation 2011.4.26 16 41 23.109 DEBUG TransactionSynchronizationManager[http-8080-1] - Retrieved value [org.springframework.jdb c.datasource.ConnectionHolder@a166bd] for key [org.apache.tomcat.dbcp.dbcp.BasicDataSource@119db9e] bound to thread [h ttp-8080-1] 2011.4.26 16 41 23.156 DEBUG TransactionSynchronizationManager[http-8080-1] - Retrieved value [org.springframework.jdb c.datasource.ConnectionHolder@a166bd] for key [org.apache.tomcat.dbcp.dbcp.BasicDataSource@119db9e] bound to thread [h ttp-8080-1] 2011.4.26 16 41 23.468 DEBUG TransactionSynchronizationManager[http-8080-1] - Retrieved value [org.springframework.jdb c.datasource.ConnectionHolder@a166bd] for key [org.apache.tomcat.dbcp.dbcp.BasicDataSource@119db9e] bound to thread [h ttp-8080-1] 2011.4.26 16 41 23.468 DEBUG TransactionInterceptor[http-8080-1] - Completing transaction for [suna.screen.kakeibo.dao .KakeiboDao.selectDayIncident] 2011.4.26 16 41 23.468 DEBUG DataSourceTransactionManager[http-8080-1] - Triggering beforeCommit synchronization 2011.4.26 16 41 23.468 DEBUG DataSourceTransactionManager[http-8080-1] - Triggering beforeCompletion synchronization 2011.4.26 16 41 23.468 DEBUG DataSourceTransactionManager[http-8080-1] - Initiating transaction commit 2011.4.26 16 41 23.468 DEBUG DataSourceTransactionManager[http-8080-1] - Committing JDBC transaction on Connection [jd bc db2 //localhost 50000/suna, UserName=suna, IBM DB2 JDBC Universal Driver Architecture] 2011.4.26 16 41 23.468 DEBUG DataSourceTransactionManager[http-8080-1] - Triggering afterCommit synchronization 2011.4.26 16 41 23.468 DEBUG DataSourceTransactionManager[http-8080-1] - Triggering afterCompletion synchronization 2011.4.26 16 41 23.468 DEBUG TransactionSynchronizationManager[http-8080-1] - Clearing transaction synchronization 2011.4.26 16 41 23.468 DEBUG TransactionSynchronizationManager[http-8080-1] - Removed value [org.springframework.jdbc. datasource.ConnectionHolder@a166bd] for key [org.apache.tomcat.dbcp.dbcp.BasicDataSource@119db9e] from thread [http-80 80-1] 2011.4.26 16 41 23.468 DEBUG DataSourceUtils[http-8080-1] - Resetting read-only flag of JDBC Connection [jdbc db2 //lo calhost 50000/suna, UserName=suna, IBM DB2 JDBC Universal Driver Architecture] 2011.4.26 16 41 23.468 DEBUG DataSourceTransactionManager[http-8080-1] - Releasing JDBC Connection [jdbc db2 //localho st 50000/suna, UserName=suna, IBM DB2 JDBC Universal Driver Architecture] after transaction 2011.4.26 16 41 23.484 DEBUG DataSourceUtils[http-8080-1] - Returning JDBC Connection to DataSource (1)insert実行時 2011.4.26 16 46 51.875 DEBUG DataSourceTransactionManager[http-8080-1] - Creating new transaction with name [suna.scre en.kakeibo.dao.KakeiboDao.insertIncident] PROPAGATION_REQUIRED,ISOLATION_DEFAULT 2011.4.26 16 46 51.875 DEBUG DataSourceTransactionManager[http-8080-1] - Acquired Connection [jdbc db2 //localhost 500 00/suna, UserName=suna, IBM DB2 JDBC Universal Driver Architecture] for JDBC transaction 2011.4.26 16 46 51.875 DEBUG DataSourceTransactionManager[http-8080-1] - Switching JDBC Connection [jdbc db2 //localho st 50000/suna, UserName=suna, IBM DB2 JDBC Universal Driver Architecture] to manual commit 2011.4.26 16 46 51.875 DEBUG TransactionSynchronizationManager[http-8080-1] - Bound value [org.springframework.jdbc.da tasource.ConnectionHolder@a9a32c] for key [org.apache.tomcat.dbcp.dbcp.BasicDataSource@119db9e] to thread [http-8080-1 ] 2011.4.26 16 46 51.875 DEBUG TransactionSynchronizationManager[http-8080-1] - Initializing transaction synchronization 2011.4.26 16 46 51.875 DEBUG TransactionInterceptor[http-8080-1] - Getting transaction for [suna.screen.kakeibo.dao.Ka keiboDao.insertIncident] 2011.4.26 16 46 51.890 DEBUG SqlMapClientTemplate[http-8080-1] - Opened SqlMapSession [com.ibatis.sqlmap.engine.impl.S qlMapSessionImpl@114d18f] for iBATIS operation 2011.4.26 16 46 51.890 DEBUG SqlMapClientTemplate[http-8080-1] - Obtained JDBC Connection [Transaction-aware proxy for target Connection from DataSource [org.apache.tomcat.dbcp.dbcp.BasicDataSource@119db9e]] for iBATIS operation 2011.4.26 16 46 51.890 DEBUG TransactionSynchronizationManager[http-8080-1] - Retrieved value [org.springframework.jdb c.datasource.ConnectionHolder@a9a32c] for key [org.apache.tomcat.dbcp.dbcp.BasicDataSource@119db9e] bound to thread [h ttp-8080-1] 2011.4.26 16 46 51.890 DEBUG TransactionSynchronizationManager[http-8080-1] - Retrieved value [org.springframework.jdb c.datasource.ConnectionHolder@a9a32c] for key [org.apache.tomcat.dbcp.dbcp.BasicDataSource@119db9e] bound to thread [h ttp-8080-1] 2011.4.26 16 46 52.015 DEBUG TransactionSynchronizationManager[http-8080-1] - Retrieved value [org.springframework.jdb c.datasource.ConnectionHolder@a9a32c] for key [org.apache.tomcat.dbcp.dbcp.BasicDataSource@119db9e] bound to thread [h ttp-8080-1] 2011.4.26 16 46 52.015 DEBUG TransactionInterceptor[http-8080-1] - Completing transaction for [suna.screen.kakeibo.dao .KakeiboDao.insertIncident] 2011.4.26 16 46 52.015 DEBUG DataSourceTransactionManager[http-8080-1] - Triggering beforeCommit synchronization 2011.4.26 16 46 52.015 DEBUG DataSourceTransactionManager[http-8080-1] - Triggering beforeCompletion synchronization 2011.4.26 16 46 52.015 DEBUG DataSourceTransactionManager[http-8080-1] - Initiating transaction commit 2011.4.26 16 46 52.015 DEBUG DataSourceTransactionManager[http-8080-1] - Committing JDBC transaction on Connection [jd bc db2 //localhost 50000/suna, UserName=suna, IBM DB2 JDBC Universal Driver Architecture] 2011.4.26 16 46 52.015 DEBUG DataSourceTransactionManager[http-8080-1] - Triggering afterCommit synchronization 2011.4.26 16 46 52.031 DEBUG DataSourceTransactionManager[http-8080-1] - Triggering afterCompletion synchronization 2011.4.26 16 46 52.031 DEBUG TransactionSynchronizationManager[http-8080-1] - Clearing transaction synchronization 2011.4.26 16 46 52.031 DEBUG TransactionSynchronizationManager[http-8080-1] - Removed value [org.springframework.jdbc. datasource.ConnectionHolder@a9a32c] for key [org.apache.tomcat.dbcp.dbcp.BasicDataSource@119db9e] from thread [http-80 80-1] 2011.4.26 16 46 52.031 DEBUG DataSourceTransactionManager[http-8080-1] - Releasing JDBC Connection [jdbc db2 //localho st 50000/suna, UserName=suna, IBM DB2 JDBC Universal Driver Architecture] after transaction 2011.4.26 16 46 52.031 DEBUG DataSourceUtils[http-8080-1] - Returning JDBC Connection to DataSource WebSphereUowTransactionManager 内部で、UOWManagerをJNDIルックアップして使用している。たぶんWebSphereが動いていないと利用できない。
https://w.atwiki.jp/mrp2009/pages/12.html
SpringとはJava/J2EEの汎用アプリケーションフレームワークです。 SpringはWebアプリケーション開発専用のフレームワークというわけではなく、DI機能やデータベースアクセスの抽象化、AOP(Aspect Oriented Programming) といった便利なプログラミングをサポートするフレームワークであるため、コンソールアプリケーションや Swingアプリケーションといった、Webアプリケーションではない通常のJavaアプリケーションの開発にも使うことができます。 Springは、Hibernate, Struts, Velocity, FreeMarkerなどの外部のオープンソースソフトウェアとの連携に非常に優れています。たとえば、アプリケーションの出力として、 HTML(JSP、Velocity、FreeMarker)、XML(XLST)、Excel、PDF などを使うことができます。
https://w.atwiki.jp/ptm_bn0201/pages/190.html
Biography-Prince Discography-Prince