title: Invalid token character '/' in org.springframework.http.MediaType
body: <p>I have a basic SpringBoot 2.1.5.RELEASE app. Using Spring Initializer, JPA, embedded Tomcat;</p>
  
  <p>I want to create this MediaType </p>
  
  <pre><code>MediaType mediaType = new MediaType("application/vnd.bonanza+xml");
  </code></pre>
  
  <p>that in PostMan works fine, but not in RestTemplate</p>
  
  <pre><code>java.lang.IllegalStateException: Failed to execute CommandLineRunner
      at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:816)
      at org.springframework.boot.SpringApplication.callRunners(SpringApplication.java:797)
      at org.springframework.boot.SpringApplication.run(SpringApplication.java:324)
      at org.springframework.boot.SpringApplication.run(SpringApplication.java:1260)
      at org.springframework.boot.SpringApplication.run(SpringApplication.java:1248)
      at com.ideefecloud.IdeefeCloudApplication.main(IdeefeCloudApplication.java:48)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49)
  Caused by: java.lang.IllegalArgumentException: Invalid token character '/' in token "application/vnd.bonanza+xml"
  </code></pre>