mirror of
https://github.com/Dansen999/migor.git
synced 2026-01-11 05:24:16 +00:00
Initial import (partially)
This commit is contained in:
@@ -15,13 +15,11 @@ import java.text.SimpleDateFormat;
|
||||
*/
|
||||
@Provider
|
||||
@Produces(MediaType.APPLICATION_JSON)
|
||||
public class JsonConfiguration implements ContextResolver<ObjectMapper>
|
||||
{
|
||||
public class JsonConfiguration implements ContextResolver<ObjectMapper> {
|
||||
private final ObjectMapper objectMapper;
|
||||
|
||||
|
||||
public JsonConfiguration() throws Exception
|
||||
{
|
||||
public JsonConfiguration() throws Exception {
|
||||
this.objectMapper = new ObjectMapper();
|
||||
|
||||
this.objectMapper.setDateFormat(new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ"));
|
||||
@@ -29,8 +27,7 @@ public class JsonConfiguration implements ContextResolver<ObjectMapper>
|
||||
}
|
||||
|
||||
|
||||
public ObjectMapper getContext(Class<?> objectType)
|
||||
{
|
||||
public ObjectMapper getContext(Class<?> objectType) {
|
||||
return objectMapper;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,5 +12,4 @@ import javax.ws.rs.core.Application;
|
||||
public class ServiceApplication extends Application {
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
http://java.sun.com/xml/ns/javaee
|
||||
http://java.sun.com/xml/ns/javaee/beans_1_0.xsd">
|
||||
|
||||
<interceptors>
|
||||
<interceptors>
|
||||
|
||||
</interceptors>
|
||||
</interceptors>
|
||||
</beans>
|
||||
|
||||
@@ -16,7 +16,6 @@
|
||||
</listener>
|
||||
|
||||
|
||||
|
||||
<!-- RESTeasy Servlet for generating js client stubs -->
|
||||
<servlet>
|
||||
<servlet-name>RESTEasy JSAPI</servlet-name>
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=8">
|
||||
</head>
|
||||
<body>
|
||||
</body>
|
||||
<head>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=8">
|
||||
</head>
|
||||
<body>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user