본문 바로가기

블로그관리

티스토리 코드블럭 CSS 적용 테스트용 글

728x90

인라인 코드블럭 inline code block

 

aaaaaaaaaainline codeblock dfsdfbbbbbbbbbbbb

aaaaaaaaaa inline codeblock dfsdf bbbbbbbbbbbb

dfsfd

inline codeblock

Java 1

package com.example.demo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class DemoApplication {
    public static void main(String[] args) {
      SpringApplication.run(DemoApplication.class, args);
    }
}

Java 2

package com.example.demo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@SpringBootApplication
@RestController
public class DemoApplication {
    public static void main(String[] args) {
      SpringApplication.run(DemoApplication.class, args);
    }
    @GetMapping("/hello")
    public String hello(@RequestParam(value = "name", defaultValue = "World") String name) {
      return String.format("Hello %s!", name);
    }
}

 

Javascript

var httpRequest;

if (window.XMLHttpRequest) {

	httpRequest = new XMLHttpRequest();

} else if (window.ActiveXObject) {

	httpRequest = new ActiveXObject("Microsoft.XMLHTTP");

}

HTML

<!doctype html>
	<html lang="ko">
	<head>
		<meta charset="utf-8">
        <title>title</title>
    </head>
    <body>
    </body>
</html>
728x90