Debug nodejs with chrome devtools

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…

Spring @ControllerAdvice

@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,…

Wildfly – Define system property

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…

Wildfly maven plugin

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]…

Processes listening on ports

…@… ~ $ netstat -abno | grep 8082 TCP 0.0.0.0:8082 0.0.0.0:0 LISTENING 1468 TCP 127.0.0.1:8082 127.0.0.1:60772 TIME_WAIT 0 TCP 192.168.1.90:8082 192.168.1.90:60694 TIME_WAIT 0 TCP [::]:8082…

Links

https://www.red-gate.com/simple-talk/sql/sql-development/questions-sql-server-collations-shy-ask/ https://docs.microsoft.com/en-us/sql/connect/jdbc/setting-the-connection-properties https://logging.apache.org/log4j/2.0/manual/architecture.html Oracle / PLSQL: Execute a SQL script file in SQLPlus https://www.techonthenet.com/oracle/questions/script.php DB2’s Command Line Processor and Scripting https://www.ibm.com/developerworks/data/library/techarticle/adamache/0109adamache.html