Gracefully handling corrupted state exceptions

Instead of using <legacyCorruptedStateExceptionsPolicy> it would be better to use [HandleProcessCorruptedStateExceptions] (and [SecurityCritical]) as stated here: https://msdn.microsoft.com/en-us/magazine/dd419661.aspx Following that, your Main method should look something like this: [HandleProcessCorruptedStateExceptions, SecurityCritical] static void Main(string[] args) { try { … } catch (Exception ex) { // Log the CSE. } } But be aware that this doesn’t catch … Read more

How to make Spring server to start even if database is down?

You can set: spring.sql.init.continue-on-error=true in your application.properties. According to the Spring Boot 2.5.5 user guide: By default, Spring Boot enables the fail-fast feature of its script-based database initializer. This means that, if the scripts cause exceptions, the application fails to start. You can tune that behavior by setting spring.sql.init.continue-on-error. P.S.: Before Spring Boot 2.5, the … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)