Java

方法1
<mvc:resources mapping=”/images/**” location=”/images/”/>

方法2
<ser ...

Java

javaコード
public void service(HttpServletRequest req, HttpServletResponse res) {

//Cookieの取得
Cookie[] cft ...

Java

//ファイルを読み込む
BufferedReader is = new BufferedReader(new FileReader(“orgFile.txt”));
BufferedOutput ...

Java

Javaコード
try {
Scanner scan = new Scanner(new File(“demo.txt”));
while (scan.hasNext()) {

Java

サンプルコード
//hashcodeメソッド
private volatile int hashCode = 0;
public int hashCode() {
if (hashCode == 0) ...

Java

1.javaコード
import java.util.Properties;
public class Jattinfo {

public static void main(String[] args) { ...

Java

1.cookieの作成
cookie= new Cookie(“cookiename”,”cookievalue”);
cookie.setMaxAge(3600); ...

Java

Javaコード:
@Test
public void convert_list_to_map_with_java8_lambda () {

List<Movie> movies = new Ar ...

Java

javaコード
package com.startnews.pp;

import java.util.ArrayList;
import java.util.Iterator;
import jav ...

Java

javaコード:
public class BubbleSort {
public static void bubble(int array > array) {
int temp = array; ...

Java

Javaコード
public class SelectSortAna {
static int i;
static int temp;
public static void selectSort(int ...

Java

Javaコード
Iterator<String> map = map.keySet().iterator();
while(map.hasNext()){
System.out.println(ma ...

Java

Javaコード
public static String toXMFuncL(Document xmlDoc, String encoding) throws IOException
{
ByteArrayOu ...

Nginx

サンプルコード
if (!-e $request_filename) {
proxy_pass
}

if ($http_user_agent ~ MSIE) {
rewrite ^(.*)$ ...

Nginx

設定内容
server {
listen 80;
server_name sample.com www.sample.com;
root/home/web;
if($host !~ “ ...

JavaScript

サンプルコード
function doCftPostFunc()
{
var title=encodeURI(encodeURI(document.getElementById(“titleR ...

Java

//COOKIEの取得
public String getCookieValue(Cookie;
if (cookieName.equals(cookie.getName())) {
return (cooki ...

JavaScript

//cookieを読む
function readCookie(name)
{
var cookieValue = “”;
var search = name + “ ...