org.springframework.web.servlet.view.velocity.VelocityView Java Examples
The following examples show how to use
org.springframework.web.servlet.view.velocity.VelocityView.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: EmbeddedVelocityViewResolver.java From velocity-spring-boot-project with Apache License 2.0 | 5 votes |
@Override protected void initApplicationContext() { if (this.toolboxConfigLocation != null) { if (VelocityView.class.equals(getViewClass())) { this.logger.info("Using EmbeddedVelocityToolboxView instead of " + "default VelocityView due to specified toolboxConfigLocation"); setViewClass(EmbeddedVelocityToolboxView.class); } } super.initApplicationContext(); }
Example #2
Source File: JasperReportViewResolverTests.java From spring4-understanding with Apache License 2.0 | 4 votes |
@Test(expected = IllegalArgumentException.class) public void setIncorrectViewClass() { // Should not be able to set view class to a class that does not extend // AbstractJasperReportsView. new JasperReportsViewResolver().setViewClass(VelocityView.class); }