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
| <!DOCTYPE html> | |
| <html xmlns="http://www.w3.org/1999/xhtml" | |
| xmlns:th="http://www.thymeleaf.org"> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <link rel="stylesheet" href="../../../resources/css/style.css" th:href="@{/resources/css/style.css}" /> | |
| <title th:text="#{connect.title.tw}">Title</title> | |
| </head> |
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
| <!DOCTYPE html> | |
| <html xmlns="http://www.w3.org/1999/xhtml" | |
| xmlns:th="http://www.thymeleaf.org"> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <link rel="stylesheet" href="../../../resources/css/style.css" th:href="@{/resources/css/style.css}" /> | |
| <title th:text="#{connect.title.fb}">Title</title> | |
| </head> |
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
| <!DOCTYPE html> | |
| <html xmlns="http://www.w3.org/1999/xhtml" | |
| xmlns:th="http://www.thymeleaf.org"> | |
| <head th:fragment="header"> | |
| <meta charset="utf-8" /> | |
| <link rel="stylesheet" href="../../../resources/css/style.css" th:href="@{/resources/css/style.css}" /> | |
| <title th:text="#{'profile.title.' + ${source}}">Title</title> | |
| </head> |
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
| <!DOCTYPE html> | |
| <html xmlns="http://www.w3.org/1999/xhtml" | |
| xmlns:th="http://www.thymeleaf.org"> | |
| <head th:fragment="header"> | |
| <meta charset="utf-8" /> | |
| <link rel="stylesheet" href="../../../resources/css/style.css" th:href="@{/resources/css/style.css}" /> | |
| <title th:text="#{'profile.title.' + ${source}}">Title</title> | |
| </head> |
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
| app.name=TestApp | |
| #login.html | |
| login.title=Sign in | |
| login.legend=Sign in | |
| login.username=Username | |
| login.password=Password | |
| login.button=Sign in | |
| login.noaccount=No account? Create one now! |
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
| # database properties | |
| app.jdbc.driverClassName=com.mysql.jdbc.Driver | |
| app.jdbc.url=jdbc\:mysql\://localhost/spring_social_tutorial | |
| app.jdbc.username=root | |
| app.jdbc.password= | |
| # social properties | |
| facebook.clientId=YOUR-FACEBOOK-CLIENT-ID | |
| facebook.clientSecret=YOUR-FACEBOOK-CLIENT-SECRET | |
| twitter.consumerKey=YOUR-TWITTER-CONSUMER-KEY |
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:beans xmlns="http://www.springframework.org/schema/security" | |
| xmlns:beans="http://www.springframework.org/schema/beans" | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xmlns:p="http://www.springframework.org/schema/p" | |
| xmlns:util="http://www.springframework.org/schema/util" | |
| xsi:schemaLocation="http://www.springframework.org/schema/beans | |
| http://www.springframework.org/schema/beans/spring-beans-3.1.xsd | |
| http://www.springframework.org/schema/security | |
| http://www.springframework.org/schema/security/spring-security-3.1.xsd |
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.Configuration; | |
| import org.springframework.context.annotation.ImportResource; | |
| import org.springframework.web.filter.DelegatingFilterProxy; | |
| @Configuration | |
| @ImportResource({"classpath:spring-security.xml"}) | |
| public class SecurityConfig { |
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.Configuration; | |
| import org.thymeleaf.spring3.SpringTemplateEngine; | |
| import org.thymeleaf.spring3.view.ThymeleafViewResolver; | |
| import org.thymeleaf.templateresolver.ServletContextTemplateResolver; | |
| @Configuration | |
| public class ThymeleafConfig { |
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.sql.DataSource; | |
| import org.springframework.beans.factory.annotation.Autowired; | |
| import org.springframework.context.annotation.Bean; | |
| import org.springframework.context.annotation.Configuration; | |
| import org.springframework.core.env.Environment; | |
| import org.springframework.data.jpa.repository.config.EnableJpaRepositories; | |
| import org.springframework.orm.jpa.JpaTransactionManager; |