Java

書式
配列A = 配列B
使用例

package com.arkgame.study;public class StrRepDemo { public static void main(String cftA = ...

Glassfish

現象
JavaEE7(Glassfish)で「JDBC Resources」に追加しようとすると、以下のエラーが表示されます
class java.lang.RuntimeException

解決方法

Glassfish

現象
GlassFishの管理コンソール上で、を設定する際に下記エラーが表示されます

HTTP Status 500 – Internal Server Error
type Exception ...

Python

使用例

# coding: utf-8def funcA(x): for a in range(10): b = yield ('world',kk) if b is not None: kk = btt = funcA("sa ...

Python

使用例

# coding: utf-8def funcA(a): while a < 10: yield a a += 1nn = funcA(0)print(next(nn)) print(next(nn))

実行結 ...

Java

使用例

public void checkJNDI() throws NamingException, SQLException{ Context ctx = new InitialContext(); DataSource d ...

Maven

ファイル名 :pom.xml
使用例

      <!-- json依存関係 -->        <dependency>            <groupId>net.sf.js ...

Java

書式
public boolean contentEquals(CharSequence cs)
この文字列と指定されたCharSequenceを比較します。
使用例

package com.arkgam ...

Spring Boot

書式
request.getSession().getId()
使用例

public class UserController {//HttpSessionの場合 @GetMapping String login ...

Java

書式
文字列.split(区切文字)
使用例

package com.arkgame.study;public class SplitDemo { private static final String ptn ...

SpringMVC

1.web.xmlに404、500を指定

<error-page> <error-code>404</error-code> <location>/404</location ...

SpringMVC

書式
public ModelAndView 関数名(データの型 引数名)
使用例
1.リダイレクト先にパラメータをしない

@RequestMapping(value="/create",method = ...

SpringMVC

1.パラメータなし

@RequestMapping(value="/create",method = { RequestMethod.POST, RequestMethod.GET }) public String create ...

Tomcat

書式
<page-encoding>UTF-8</page-encoding>
使用例

<jsp-config> <jsp-property-group> < ...

SpringMVC

書式
emptyで変数が空文字またはNULLかどうかを判定します。
使用例1
strutsの場合

<logic:empty name="userForm" property="addr"> 1 ...

Swift

書式
struct 構造体名
使用例

//構造体の定義struct DemoStruct { var age: Int init (age: Int){ self.age = age }} var stA = D ...

VBScript

書式
CInt(値)
使用例

Sub funcA() Dim x As String x = "100" resA = CInt(x) Debug.Print (resA) Debug.Print (VarTyp ...

VBScript

書式
CStr(値)
使用例

Sub funcAa() Dim x As Integer x = 100 resB = CStr(x) Debug.Print (resB) Debug.Print (VarTyp ...