INTS-137: Add STOMP Chat Application
JIRA: https://jira.spring.io/browse/INTSAMPLES-137 * Upgrade to Boot 1.1.7 * Fix several Boot apps to get deal with `args`, e.g. `--debug` option can be useful for Boot * Provide a loca copy for JavaScript files (`sock.js` and `stomp.js`) to avoid extra Internet connection on testing INTS-137-2: Make JavaScript cross-browser Some additional polishing to the server config, like `logging-channel-adapter` for server message flow
This commit is contained in:
committed by
Gary Russell
parent
a5c12343c6
commit
63232c2974
@@ -68,7 +68,7 @@ import org.springframework.social.twitter.api.impl.TwitterTemplate;
|
||||
public class Application {
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
ConfigurableApplicationContext ctx = SpringApplication.run(Application.class);
|
||||
ConfigurableApplicationContext ctx = SpringApplication.run(Application.class, args);
|
||||
System.in.read();
|
||||
ctx.close();
|
||||
}
|
||||
|
||||
@@ -75,7 +75,7 @@ import org.springframework.social.twitter.api.impl.TwitterTemplate;
|
||||
public class Application {
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
ConfigurableApplicationContext ctx = SpringApplication.run(Application.class);
|
||||
ConfigurableApplicationContext ctx = SpringApplication.run(Application.class, args);
|
||||
Scanner scanner = new Scanner(System.in);
|
||||
String hashTag = scanner.nextLine();
|
||||
System.out.println(ctx.getBean(Gateway.class).sendReceive(hashTag));
|
||||
|
||||
Reference in New Issue
Block a user