どこかのライブラリが新しいバージョンを落とそうとしても、強制的に4.11になる。
configurations.all { resolutionStrategy { force 'junit:junit:4.11' } }
configurations.all { resolutionStrategy { force 'junit:junit:4.11' } }
ALTER PROFILE default LIMIT PASSWORD_VERIFY_FUNCTION ora12c_verify_function;
select profile, resource_name, resource_type, limit from dba_profiles where profile = 'DEFAULT' and resource_name='PASSWORD_VERIFY_FUNCTION'
PROFILE RESOURCE_NAME RESOURCE_TYPE LIMIT --------------- ------------------------------ --------------- --------------- DEFAULT PASSWORD_VERIFY_FUNCTION PASSWORD ORA12C_VERIFY_F UNCTION
insert into hoge (binary) values (X'3031323334353637383930');
Hoge.java:3: エラー: 自己終了要素は使用できません
gradlew help --task タスク名
$ ./gradlew help --task dependencyInsight :help Detailed task information for dependencyInsight Path :dependencyInsight Type DependencyInsightReportTask (org.gradle.api.tasks.diagnostics.DependencyInsightReportTask) Options --configuration Looks for the dependency in given configuration. --dependency Shows the details of given dependency. Description Displays the insight into a specific dependency in root project 'spring-boot-in-action'. Group help
Return a result set that contains the last generated auto-increment key for this connection, if there was one. If no key was generated by the last modification statement, then an empty result set is returned. The returned result set only contains the data for the very last row.
compile 'com.h2database:h2:1.3.176'
jdbcDataSource.connection.use {connection -> connection.createStatement().use {statement -> statement.execute("create table test(id bigint auto_increment, name varchar(255))") } connection.prepareStatement("insert into test (name) values (?)").use { ps -> for (i in 1..10) { ps.setString(1, "name_$i") ps.addBatch(); } ps.executeBatch() ps.generatedKeys.use { while (it.next()) { println("it.getInt(1) = ${it.getInt(1)}") } } } }
compile 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.7.2'
final ObjectMapper objectMapper = new ObjectMapper();
objectMapper.registerModule(new JavaTimeModule());
final ObjectMapper objectMapper = new ObjectMapper();
objectMapper.registerModule(new JavaTimeModule());
System.out.println(objectMapper.writeValueAsString(LocalDate.now()));
[ 2016, 3, 8 ]
final ObjectMapper objectMapper = new ObjectMapper();
SimpleModule module = new SimpleModule();
// formatを指定してLocalDateSerializerを登録する。
module.addSerializer(new LocalDateSerializer(DateTimeFormatter.ofPattern("yyyyMMdd")));
objectMapper.registerModule(module);
System.out.println(objectMapper.writeValueAsString(LocalDate.now()));
"20160308"