java.lang.IllegalStateException: The Java Virtual Machine has not been configured to use the desired default character encoding (UTF-8).

Stack Overflow | Laurence | 8 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 2

    How to set UTF-8 character encoding in Spring boot?

    Stack Overflow | 8 months ago | Laurence
    java.lang.IllegalStateException: The Java Virtual Machine has not been configured to use the desired default character encoding (UTF-8).

    Root Cause Analysis

    1. java.lang.IllegalStateException

      The Java Virtual Machine has not been configured to use the desired default character encoding (UTF-8).

      at org.springframework.boot.context.FileEncodingApplicationListener.onApplicationEvent()
    2. Spring Boot
      FileEncodingApplicationListener.onApplicationEvent
      1. org.springframework.boot.context.FileEncodingApplicationListener.onApplicationEvent(FileEncodingApplicationListener.java:74)[spring-boot-1.3.7.RELEASE.jar!/:1.3.7.RELEASE]
      1 frame