Skip to content

Commit

Permalink
Add Message class when first referenced
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave Syer committed Nov 16, 2016
1 parent e4ee6ea commit 922de14
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion vanilla/README.adoc
Expand Up @@ -54,7 +54,7 @@ $ curl https://start.spring.io/starter.tgz -d style=web \

You can then import that project (it's a normal Maven Java project by default) into your favourite IDE, or just work with the files and "mvn" on the command line.

Just add a `@RequestMapping` to the https://github.com/dsyer/spring-security-angular/blob/master/vanilla/resource/src/main/groovy/demo/ResourceApplication.groovy[main application class], copying the implementation from the https://github.com/dsyer/spring-security-angular/blob/master/single/src/main/java/demo/UiApplication.java[old UI]:
Just add a `@RequestMapping` to the https://github.com/dsyer/spring-security-angular/blob/master/vanilla/resource/src/main/java/demo/ResourceApplication.java[main application class], copying the implementation from the https://github.com/dsyer/spring-security-angular/blob/master/single/src/main/java/demo/UiApplication.java[old UI]:

.ResourceApplication.java
[source,java]
Expand All @@ -73,6 +73,15 @@ class ResourceApplication {
}
}
class Message {
private String id = UUID.randomUUID().toString();
private String content;
public Message(String content) {
this.content = content;
}
// ... getters and setters and default constructor
}
----

Once that is done your application will be loadable in a browser. On the command line you can do this
Expand Down

0 comments on commit 922de14

Please sign in to comment.