This file contains 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
<dependency> | |
<groupId>org.springframework.boot</groupId> | |
<artifactId>spring-boot-starter-mail</artifactId> | |
</dependency> |
This file contains 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
spring.jpa.properties.hibernate.jdbc.lob.non_contextual_creation=true | |
spring.mail.host=smtp.gmail.com | |
[email protected] | |
spring.mail.password=****************** | |
spring.mail.port=465 | |
spring.mail.protocol=smtps | |
mail.debug=true |
This file contains 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
<dependency> | |
<groupId>org.springframework.session</groupId> | |
<artifactId>spring-session-jdbc</artifactId> | |
</dependency> |
This file contains 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
<!-- JAXB --> | |
<dependency> | |
<groupId>javax.xml.bind</groupId> | |
<artifactId>jaxb-api</artifactId> | |
<version>2.3.0</version> | |
</dependency> | |
<dependency> | |
<groupId>com.sun.xml.bind</groupId> | |
<artifactId>jaxb-core</artifactId> | |
<version>2.3.0</version> |
This file contains 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
location / { | |
proxy_set_header Host $host; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_pass http://localhost:8080; | |
} | |
location /img/ { | |
alias /home/apalyukha/uploads/; | |
} |
This file contains 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
// GET all | |
fetch('/message/').then(response => response.json().then(console.log)) | |
// GET one | |
fetch('/message/2').then(response => response.json().then(console.log)) | |
// POST add new one | |
fetch( | |
'/message', | |
{ |
This file contains 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
<dependency> | |
<groupId>org.projectlombok</groupId> | |
<artifactId>lombok</artifactId> | |
</dependency> |
This file contains 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
compile('org.springframework.boot:spring-boot-starter-data-jpa') | |
compile('org.postgresql:postgresql') | |
compile('org.projectlombok:lombok') | |
compile('javax.xml.bind:jaxb-api') | |
compile('com.sun.xml.bind:jaxb-core') | |
compile('com.sun.xml.bind:jaxb-impl') |
This file contains 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
security.oauth2.client.clientId=some-secret.apps.googleusercontent.com | |
security.oauth2.client.clientSecret=very-secret | |
security.oauth2.client.accessTokenUri=https://www.googleapis.com/oauth2/v4/token | |
security.oauth2.client.userAuthorizationUri=https://accounts.google.com/o/oauth2/v2/auth | |
security.oauth2.client.clientAuthenticationScheme=form | |
security.oauth2.client.scope=openid,email,profile | |
security.oauth2.resource.userInfoUri=https://www.googleapis.com/oauth2/v3/userinfo | |
security.oauth2.resource.preferTokenInfo=true | |
server.port=9000 |
This file contains 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
compile('org.springframework.boot:spring-boot-starter-security') | |
compile('org.springframework.security.oauth.boot:spring-security-oauth2-autoconfigure:2.0.0.RELEASE') |