mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-04-24 19:32:48 +00:00
polish
This commit is contained in:
parent
2742ccbd4a
commit
9106b83834
2 changed files with 4 additions and 12 deletions
|
@ -16,8 +16,7 @@
|
||||||
<li><a href="<c:url value="/account/signout"/>">Sign Out</a></li>
|
<li><a href="<c:url value="/account/signout"/>">Sign Out</a></li>
|
||||||
</c:when>
|
</c:when>
|
||||||
<c:otherwise>
|
<c:otherwise>
|
||||||
<li><a href="<c:url value="/account/signin"/>">Sign In</a></li>
|
<li><a href="<c:url value="/account/signin"/>">Sign In</a></li>
|
||||||
<li><a href="<c:url value="/account/register"/>">Register</a></li>
|
|
||||||
</c:otherwise>
|
</c:otherwise>
|
||||||
</c:choose>
|
</c:choose>
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -26,7 +25,6 @@
|
||||||
<li><a href="<c:url value="/"/>">Home</a></li>
|
<li><a href="<c:url value="/"/>">Home</a></li>
|
||||||
<li><a href="appointments">Appointments</a></li>
|
<li><a href="appointments">Appointments</a></li>
|
||||||
<li><a href="owners">Owners</a></li>
|
<li><a href="owners">Owners</a></li>
|
||||||
<li><a href="pets">Pets</a></li>
|
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -9,17 +9,11 @@
|
||||||
<!-- HANDLER MAPPING RULES -->
|
<!-- HANDLER MAPPING RULES -->
|
||||||
|
|
||||||
<!-- Maps requests to @Controllers based on @RequestMapping("path") annotation values
|
<!-- Maps requests to @Controllers based on @RequestMapping("path") annotation values
|
||||||
If no annotation-based path mapping is found, Spring MVC proceeds to the next HandlerMapping (order=2 below). -->
|
If no annotation-based path mapping is found, Spring MVC sends a 404 response and logs a pageNotFound warning. -->
|
||||||
<bean class="org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping">
|
<bean class="org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping">
|
||||||
<property name="order" value="1" />
|
<property name="order" value="1" />
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<!-- Maps requests to @Controllers based on controller class name convention; e.g. a request for /hotels or a /hotels sub-resource maps to HotelsController
|
|
||||||
If no class mapping is found, Spring MVC sends a 404 response and logs a pageNotFound warning. -->
|
|
||||||
<bean class="org.springframework.web.servlet.mvc.support.ControllerClassNameHandlerMapping">
|
|
||||||
<property name="order" value="2" />
|
|
||||||
</bean>
|
|
||||||
|
|
||||||
<!-- REGISTERED HANDLER TYPES -->
|
<!-- REGISTERED HANDLER TYPES -->
|
||||||
|
|
||||||
<!-- Enables annotated @Controllers; responsible for invoking an annotated POJO @Controller when one is mapped. -->
|
<!-- Enables annotated @Controllers; responsible for invoking an annotated POJO @Controller when one is mapped. -->
|
||||||
|
@ -27,12 +21,12 @@
|
||||||
|
|
||||||
<!-- VIEW RESOLUTION AND RENDERING -->
|
<!-- VIEW RESOLUTION AND RENDERING -->
|
||||||
|
|
||||||
<!-- Resolves view names to protected .jsp resources within the /WEB-INF directory -->
|
<!-- Resolves view names to tiles definitions in /WEB-INF/tiles.xml -->
|
||||||
<bean class="org.springframework.web.servlet.view.UrlBasedViewResolver">
|
<bean class="org.springframework.web.servlet.view.UrlBasedViewResolver">
|
||||||
<property name="viewClass" value="org.springframework.web.servlet.view.tiles2.TilesView" />
|
<property name="viewClass" value="org.springframework.web.servlet.view.tiles2.TilesView" />
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<!-- Initializes the Apache Tiles 2 system -->
|
<!-- Initializes the Apache Tiles CompositeView system -->
|
||||||
<bean id="tilesConfigurer" class="org.springframework.web.servlet.view.tiles2.TilesConfigurer" />
|
<bean id="tilesConfigurer" class="org.springframework.web.servlet.view.tiles2.TilesConfigurer" />
|
||||||
|
|
||||||
<!-- Configures Apache Commons Fileupload -->
|
<!-- Configures Apache Commons Fileupload -->
|
||||||
|
|
Loading…
Reference in a new issue