Skip to content

Instantly share code, notes, and snippets.

privatejk2002

Block or report user

Report or block privatejk2002

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Spring Boot
データソース設定
# datasource
spring.datasource.driver-class-name=org.h2.Driver
spring.datasource.url=jdbc:h2:tcp://localhost/~/test
spring.datasource.username=sa
spring.datasource.password=
# connection pool use tomcat
spring.datasource.tomcat.maxActive=10
View sql
<resultMap id="getAllSetDaysResult" type="HashMap">
<result property="key" column="SP_FPARAMEKEY" />
<result property="value" column="SP_FPARAMEVALUE" />
</resultMap>
<select id="getAllSetDays" resultMap="getAllSetDaysResult">
SELECT SP.FPARAMEKEY SP_FPARAMEKEY, SP.FPARAMEVALUE SP_FPARAMEVALUE
FROM T_SERVER_PARAMETER SP
WHERE SP.FPARAMEKEY IN ('XXX')
View 連動コンボ
<select name="lv1" id="lv1Pulldown">
<option value="0" selected="selected">▼選択</option>
<option value="1">ファッション</option>
<option value="2">ドリンク・お酒</option>
<option value="3">パソコン・周辺機器</option>
</select>
<select name="lv2" id="lv2Pulldown" disabled="disabled">
<option value="0">▼選択</option>
<option value="4" class="p1">バッグ</option>
View ファイル検索
Sub select_Click()
Dim sheetA As Worksheet
Dim Shell, myPath
Set sheetA = ActiveSheet
Set Shell = CreateObject("Shell.Application")
Set myPath = Shell.BrowseForFolder(&O0, "フォルダを選んでください", &H1 + &H10)
View pom設定
<build>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>>0.7.9</version>
<executions>
 ▽以下がpowermock向けの設定
<execution>
<id>default-instrument</id>
View swingサンプル
package t007;
import java.awt.BorderLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
You can’t perform that action at this time.