Use this. It worked for me -
codesign --force --deep --sign - /Applications/SpringToolSuite4.app
It will try to force sign the app and give you permission to run it.
Topic:
App & System Services
SubTopic:
Core OS
Tags: