File tree Expand file tree Collapse file tree 5 files changed +9
-7
lines changed
example/src/main/java/org/jadice/gwt/spring/demo Expand file tree Collapse file tree 5 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
- <!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 2.5 .1//EN"
3
- "http://gwtproject.org/doctype/2.8.0 /gwt-module.dtd">
2
+ <!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 2.12 .1//EN"
3
+ "http://gwtproject.org/doctype/2.12.1 /gwt-module.dtd">
4
4
<module rename-to =" springdemo" >
5
5
<inherits name =" com.google.gwt.user.User" />
6
6
Original file line number Diff line number Diff line change 8
8
9
9
@ RemoteServiceRelativePath ("time" )
10
10
public interface TimeService extends RemoteService {
11
- public static class TimeResponse implements Serializable {
11
+ class TimeResponse implements Serializable {
12
12
private static final long serialVersionUID = 1L ;
13
13
14
14
public TimeResponse () {
@@ -22,4 +22,4 @@ public TimeResponse(final Date date) {
22
22
}
23
23
24
24
TimeResponse getTime ();
25
- }
25
+ }
Original file line number Diff line number Diff line change 4
4
5
5
import com .google .gwt .user .client .rpc .AsyncCallback ;
6
6
7
+
7
8
public interface TimeServiceAsync {
8
9
9
10
void getTime (AsyncCallback <TimeResponse > callback );
Original file line number Diff line number Diff line change 20
20
*/
21
21
@ SpringBootApplication
22
22
23
- // Activate GWT support specifiying the GWT module name for the entry point
23
+ // Activate GWT support specifying the GWT module name for the entry point
24
24
@ EnableGWTSpringBootApplication ("org.jadice.gwt.spring.demo.Application" )
25
25
26
26
// Activate scanning for RPC service servlets so that TimeServiceImpl is picked up
Original file line number Diff line number Diff line change 6
6
7
7
import org .jadice .gwt .spring .demo .client .TimeService ;
8
8
9
- import com .google .gwt .user .server .rpc .RemoteServiceServlet ;
9
+ import com .google .gwt .user .server .rpc .jakarta .RemoteServiceServlet ;
10
+
10
11
11
12
// Expose the RPC service at the desired URL
12
13
@ WebServlet (urlPatterns = "/springdemo/time" )
@@ -20,4 +21,4 @@ public class TimeServiceImpl extends RemoteServiceServlet implements TimeService
20
21
public TimeResponse getTime () {
21
22
return new TimeResponse (new Date ());
22
23
}
23
- }
24
+ }
You can’t perform that action at this time.
0 commit comments