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
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 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
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 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
<dependency> | |
<groupId>org.projectlombok</groupId> | |
<artifactId>lombok</artifactId> | |
</dependency> |
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
// 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 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
alias ccat='pygmentize -g' |
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
location / { | |
proxy_set_header Host $host; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_pass http://localhost:8080; | |
} | |
location /img/ { | |
alias /home/dru/uploads/; | |
} |
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
<!-- 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 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
recaptcha.secret=6LduQVoUAAAAACpkNtp9c5WWgyGENzIxZqF9SbZL | |
spring.session.jdbc.initialize-schema=always | |
spring.session.jdbc.table-name=SPRING_SESSION |
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
<dependency> | |
<groupId>org.springframework.session</groupId> | |
<artifactId>spring-session-jdbc</artifactId> | |
</dependency> |
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
spring.jpa.show-sql=true | |
spring.jpa.hibernate.ddl-auto=create |