【文件属性】:
文件名称:ajax调用java实例源码-webery:韦伯里
文件大小:307KB
文件格式:ZIP
更新时间:2021-06-04 11:01:45
系统开源
ajax调用java实例源码
Java
HTTP
服务器
服务器基于我的
HttpServer<
HttpConnection
>
server
=
new
HttpServer<>
(
8080
);
server
.
getUrlMapping()
.append(
"
/
"
,
(request,
response)
-
>
response
.
setBody(
"
It's
alive!
"
));
server
.
start();
框架
Gradle
build.gradle
apply
plugin
:
'
java
'
apply
plugin
:
'
application
'
repositories
{
jcenter()
mavenCentral()
maven
{
url
"
https://oss.sonatype.org/content/repositories/snapshots/
"
}
}
sourceCompatibility
=
1.8
targetCompatibility
=
1.8
version
=
'
0.1
'
mainClass