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

BeanUtils の copyProperties に喧嘩を売るつもりはないけど。。。

Apache の commons-beanutils 今更、BeanUtils の copyProperties と張りあうつもりもないし、Entity DTO Form などで属性値渡すような アーキテクチャ(アプリ構成)には、とっくに興味がないのだが、、、 原始的には、面白いところなので、書いてみた。公…

Vue.js v-model で参照

oboe2uran.hatenablog.comモーダルで表示する input の値を参照するのに、 jQuery で書いてしまったが、 Vue.js としては、v-model で指定した名称で 参照するのが正しいのだろう。。モーダルの中で書いた、input に、v-model で参照キーを指定⇒ "uname" <input type="text" name="userName" id="userName" v-model="uname" class="col-3 form-control"> Vu…

Vue.js で Bootstrap のモーダル

bootstrap-vue.js を使わずに、Vue.js で動かす Bootstrap のモーダル でも、、bootstrap-vue.min.css を使う。。head タグに書くもの (サンプルなのでCDN) <link type="text/css" rel="stylesheet" href="https://unpkg.com/bootstrap/dist/css/bootstrap.min.css" /> </link>

BOM付きCSV書込み読込み Python

以前書いたけど、、BOM付きCSV書込み # -*- coding: UTF-8 -*- import csv import codecs with codecs.open('sample.csv', 'w', 'UTF-8') as f: f.write(u'\ufeff') cf = csv.writer(f) cf.writerow(['A','B','C']) cf.writerow(['あ', 'い', 'う' ]) cf.wri…

STS (Spring Tool Suite)でのエディタの水平分割

Eclipse 4.8.0(Photon)以降では、ソースの編集において 行数が多い長いソースは、エディタを水平分割して作業する機能があって便利です。 ctrl + _ (アンダースコア) のショートカットが便利でよく使います。しかし、STS (Spring Tool Suite)では、この…