Skip to content

Instantly share code, notes, and snippets.

View PierreBesson's full-sized avatar

Pierre Besson PierreBesson

View GitHub Profile
@PierreBesson
PierreBesson / spring-configuration-metadata.json
Created August 9, 2019 14:13
spring-configuration-metadata.json
{
"groups": [
{
"name": "jhipster",
"type": "io.github.jhipster.config.JHipsterProperties",
"sourceType": "io.github.jhipster.config.JHipsterProperties"
},
{
"name": "jhipster.async",
"type": "io.github.jhipster.config.JHipsterProperties$Async",
diff --git a/_layouts/default.html b/_layouts/default.html
index a1dc85e..ccf461b 100644
--- a/_layouts/default.html
+++ b/_layouts/default.html
@@ -12,6 +12,7 @@
<meta name="twitter:description" content="JHipster is a fully Open Source, widely used application generator. It leverages cool technologies like Spring Boot, Angular and React to give you a high level of productivity and quality." />
<meta name="twitter:image:src" content="https://www.jhipster.tech/images/twitter-card.png?20170202" />
<meta name="twitter:url" content="https://www.jhipster.tech/" />{% endif %}
+ <meta name="google-site-verification" content="JSA7VC5gSwD5KKbXlxK8F9rXJtC91rKJq0aWhfpBC0k" />
<!-- Chrome, Firefox OS and Opera -->
# Setup JHipster to use the latest LTS version of NodeJS
nvm use --lts && node -v > .nvmrc
mvn versions:set-property -Dproperty=node.version -DnewVersion=$(cat .nvmrc)
# Setup JHipster to use your local version of yarn for prod builds
mvn versions:set-property -Dproperty=yarn.version -DnewVersion="v$(yarn -v)"
# Or Setup JHipster to use your local version of npm for prod builds
mvn versions:set-property -Dproperty=npm.version -DnewVersion="v$(npm -v)"
@PierreBesson
PierreBesson / Kickstart_JHipster_Microservice_Development.md
Last active March 6, 2018 18:10
Kickstart JHipster Microservice Development

Start a JHipster registry with docker :

docker run -d \
  -p 8761:8761 \
  -v "$(pwd)"/central-config:/central-config/ \
  -e SPRING_PROFILES_ACTIVE=dev,native,swagger \
  -e SECURITY_USER_PASSWORD=admin \
  -e JHIPSTER_SECURITY_AUTHENTICATION_JWT_SECRET=secret-key \
  -e ENCRYPT_KEY=secret-encryption-key \
 jhipster/jhipster-registry

Keybase proof

I hereby claim:

  • I am pierrebesson on github.
  • I am pibesson (https://keybase.io/pibesson) on keybase.
  • I have a public key ASDVDzZFF8NN-3jmM88hCHMTmdBsE0LEctJs_xBSOiqjZAo

To claim this, I am signing this object:

@PierreBesson
PierreBesson / InstanceRegistrationResource.java
Created September 25, 2017 12:53
Eureka microservice manual registration
@RestController
@RequestMapping("registration")
public class InstanceRegistrationResource {
private final InstanceRegistrationService instanceRegistrationService;
public InstanceRegistrationResource(InstanceRegistrationService instanceRegistrationService) {
this.instanceRegistrationService = instanceRegistrationService;
}
@PostMapping("register")