Now uploads webp's.

version2
Tim Holloway 1 year ago
parent 94cabeb695
commit 1f628e4648
  1. 2
      pom.xml
  2. 4
      src/main/java/com/mousetech/gourmetj/SpringPrimeFacesApplication.java

@ -120,6 +120,7 @@
<groupId>com.twelvemonkeys.imageio</groupId>
<artifactId>imageio-webp</artifactId>
<version>3.8.1</version>
<scope>compile</scope>
</dependency>
<!-- Needed only if you deploy ImageIO plugins as part of a web app.
Make sure you add the IIOProviderContextListener to your web.xml.
@ -128,6 +129,7 @@
<groupId>com.twelvemonkeys.servlet</groupId>
<artifactId>servlet</artifactId>
<version>3.8.1</version>
<scope>compile</scope>
</dependency>

@ -21,6 +21,8 @@ import org.springframework.http.HttpStatus;
"com.mousetech.gourmetj.persistence.model" })
public class SpringPrimeFacesApplication {
private static final String IMAGE_IIO_PROVIDER_CONTEXT_LISTENER =
"com.twelvemonkeys.servlet.image.IIOProviderContextListener";
final String errorPage = "/error/error.html";
final String error404Page = "/error/error404.html";
final String expiredPage = "/error/viewExpired.xhtml";
@ -50,7 +52,7 @@ public class SpringPrimeFacesApplication {
servletContext.setInitParameter(
"primefaces.UPLOADER", "native");
servletContext.addListener("com.twelvemonkeys.servlet.image.IIOProviderContextListener");
servletContext.addListener(IMAGE_IIO_PROVIDER_CONTEXT_LISTENER);
}
};
}

Loading…
Cancel
Save