chrome://inspect/#devices

$ node –inspect –debug-brk shifty
Debugger listening on ws://127.0.0.1:9229/705a62e5-3ba5-4b93-8ee6-d0c86419451b
For help see https://nodejs.org/en/docs/inspector
Debugger attached.
(node:2580) [DEP0062] DeprecationWarning: node --inspect --debug-brk is deprecated. Please use node --inspect-brk instead.
Shifty
? > enc start
External notification consumer
Http server that stores the request body in directory named with todays date
-h help
-q quit
Starting HTTP listener
Listening on 8084
Debugger listening on ws://127.0.0.1:9229/705a62e5-3ba5-4b93-8ee6-d0c86419451b
For help see https://nodejs.org/en/docs/inspector
? > Debugger attached.
? >
Tell me something
? >
Received URL [/] @ 2018-01-08T10:36:41.334Z
Message from [::1]
{“host”:”localhost:8084″,”user-agent”:”curl/7.55.1″,”accept”:”/“,”content-type”:”application/json”,”content-length”:”9″}
{
“a”: “b”
}

https://medium.com/@paul_irish/debugging-node-js-nightlies-with-chrome-devtools-7c4a1b95ae27

@ControllerAdvice(annotations = Controller.class)
public class ControllerErrorAdvice extends ResponseEntityExceptionHandler {

@ExceptionHandler(value = { IllegalArgumentException.class, IllegalStateException.class,
        NullPointerException.class })
protected ResponseEntity<Object> handleConflict(RuntimeException ex, WebRequest request) {
    return handleExceptionInternal(ex, ex.getMessage(), new HttpHeaders(), HttpStatus.CONFLICT, request);
}

}

http://www.baeldung.com/exception-handling-for-rest-with-spring
https://docs.spring.io/spring/docs/current/spring-framework-reference/web.html#mvc-ann-controller-advice

C:\java\wildfly\wildfly-10.1.0.Final\bin>jboss-cli –connect controller=localhost
[standalone@localhost:9990 /] /system-property=spring.profiles.active:add(value=local)
{“outcome” => “success”}
[standalone@localhost:9990 /] /system-property=spring.profiles.active:read-resource
{
“outcome” => “success”,
“result” => {“value” => “local”}
}
[standalone@localhost:9990 /] /system-property=spring.profiles.active:read-resource
{
“outcome” => “success”,
“result” => {“value” => “local”}
}
[standalone@localhost:9990 /] /system-property=spring.profiles.active:add(value=local)
{
“outcome” => “failed”,
“failure-description” => “WFLYCTL0212: Duplicate resource [(\”system-property\” => \”spring.profiles.active\”)]”,
“rolled-back” => true
}
[standalone@localhost:9990 /] /system-property=spring.profiles.active:read-resource
{
“outcome” => “success”,
“result” => {“value” => “local”}
}
[standalone@localhost:9990 /] /system-property=LOGDIR:read-resource
{
“outcome” => “success”,
“result” => {“value” => “D:/logs”}
}
[standalone@localhost:9990 /] /system-property=LOG
DIR:read-resource
{
“outcome” => “success”,
“result” => {“value” => “D:/logs”}
}
[standalone@localhost:9990 /] /system-property=spring.profiles.active:read-resource
{
“outcome” => “success”,
“result” => {“value” => “local”}
}

https://developer.jboss.org/thread/197273
https://docs.jboss.org/author/display/AS7/Admin+Guide#AdminGuide-SystemProperties
https://developer.jboss.org/wiki/JBossAS7SystemProperties

Start a local wildfly instance.

$ ~/java_tools/wildfly/wildfly-10.1.0.Final/bin/standalone.sh &

Or download and start on-the-fly.

$ mvn -Pwildfly wildfly:start
[INFO] Scanning for projects…
[INFO]
[INFO] ————————————————————————
[INFO] Building fireanote-web 0.0.1-SNAPSHOT
[INFO] ————————————————————————
[INFO]
[INFO] — wildfly-maven-plugin:1.0.1.Final:start (default-cli) @ fireanote-web —
Downloading: …

$ mvn -Pwildfly wildfly:deploy

$ mvn -Pwildfly wildfly:undeploy

$ mvn -Pwildfly wildfly:shutdown

http://docs.jboss.org/wildfly/plugins/maven/latest/