|
|
|
@ -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); |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
} |
|
|
|
|