Java

其实一开始,我是拒绝学 Java 的

logo

hello, world

1
2
3
4
5
public class HelloWorld {
public static void main(String[] args) {
System.out.println("hello, world");
}
}

Web

SSH 框架

  • Spring
  • Structs
  • Hibernate

spring-boot

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import org.springframework.boot.*;
import org.springframework.boot.autoconfigure.*;
import org.springframework.web.bind.annotation.*;
@RestController
@SpringBootApplication
public class Example {
@RequestMapping("/")
String home() {
return "Hello World!";
}
public static void main(String[] args) throws Exception {
SpringApplication.run(Example.class, args);
}
}
Edit on GitHub