This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package org.krams.config; | |
| import org.springframework.context.annotation.Bean; | |
| import org.springframework.context.annotation.ComponentScan; | |
| import org.springframework.context.annotation.Configuration; | |
| import org.springframework.context.annotation.Import; | |
| import org.springframework.context.annotation.ImportResource; | |
| import org.springframework.context.annotation.PropertySource; | |
| import org.springframework.context.support.PropertySourcesPlaceholderConfigurer; | |
| import org.springframework.context.support.ResourceBundleMessageSource; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package org.krams.config; | |
| import javax.servlet.FilterRegistration; | |
| import javax.servlet.ServletContext; | |
| import javax.servlet.ServletException; | |
| import javax.servlet.ServletRegistration; | |
| import org.springframework.web.WebApplicationInitializer; | |
| import org.springframework.web.context.ContextLoaderListener; | |
| import org.springframework.web.context.support.AnnotationConfigWebApplicationContext; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Provides internationalization of messages | |
| @Bean | |
| public ResourceBundleMessageSource messageSource() { | |
| ResourceBundleMessageSource source = new ResourceBundleMessageSource(); | |
| source.setBasename("messages"); | |
| return source; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| user.page.title=User Management | |
| user.table.caption=Site Users | |
| user.id.label=Id | |
| user.firstname.label=First Name | |
| user.lastname.label=Last Name | |
| user.username.label=Username | |
| user.role.label=Role | |
| user.role.1=admin |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-8"?> | |
| <web-app xmlns="http://java.sun.com/xml/ns/javaee" | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" | |
| version="2.5"> | |
| <display-name>Spring Thymeleaf Tutorial</display-name> | |
| <listener> | |
| <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> | |
| </listener> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-8"?> | |
| <beans xmlns="http://www.springframework.org/schema/beans" | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xmlns:p="http://www.springframework.org/schema/p" | |
| xsi:schemaLocation="http://www.springframework.org/schema/beans | |
| http://www.springframework.org/schema/beans/spring-beans-3.1.xsd"> | |
| <!-- Declare a Thymeleaf resolver --> | |
| <bean id="templateResolver" class="org.thymeleaf.templateresolver.ServletContextTemplateResolver" | |
| p:prefix="/WEB-INF/templates/" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-8"?> | |
| <beans xmlns="http://www.springframework.org/schema/beans" | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xmlns:p="http://www.springframework.org/schema/p" | |
| xmlns:tx="http://www.springframework.org/schema/tx" | |
| xmlns:context="http://www.springframework.org/schema/context" | |
| xmlns:jdbc="http://www.springframework.org/schema/jdbc" | |
| xmlns:jpa="http://www.springframework.org/schema/data/jpa" | |
| xmlns:util="http://www.springframework.org/schema/util" | |
| xsi:schemaLocation=" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <import resource="trace-context.xml"/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <mvc:annotation-driven /> |