Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b4HkWoC7hLzk61vZa8
13 lines
879 B
Bash
Executable File
13 lines
879 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# The config server with config-monitor and Eureka but no RestClient.Builder bean. $1 = built copy without spring-boot-starter-restclient.
|
|
MOD=$(cd "$(dirname "$0")/.." && pwd); cd "$1" || exit 1
|
|
unset JAVA_TOOL_OPTIONS
|
|
mkdir -p run/logs
|
|
timeout 60 java -Xmx200m -jar config-server/target/config-server-1.0.0.jar > run/logs/config-server.log 2>&1
|
|
{ echo "# config-server with spring-cloud-config-monitor and the Eureka client, WITHOUT spring-boot-starter-restclient"
|
|
echo
|
|
grep -m1 -oE 'java.lang.IllegalStateException: At least one PropertyPathNotifier[^\n]*' run/logs/config-server.log
|
|
grep -m1 -E "Error creating bean with name 'propertyPathEndpoint'" run/logs/config-server.log | grep -oE "Error creating bean with name 'propertyPathEndpoint'"
|
|
} > "$MOD/output/42-notifier-without-restclient.txt"
|
|
cat "$MOD/output/42-notifier-without-restclient.txt"
|