Skip to content

Instantly share code, notes, and snippets.

2016-10-19 06:04:41.487 INFO 7 --- [nfoReplicator-0] com.netflix.discovery.DiscoveryClient : DiscoveryClient_TEST/test:a4c4613b8cb2e1fee0fa76e4905d5c22: registering service...
2016-10-19 06:04:41.508 INFO 7 --- [nfoReplicator-0] com.netflix.discovery.DiscoveryClient : DiscoveryClient_TEST/test:a4c4613b8cb2e1fee0fa76e4905d5c22 - registration status: 204
2016-10-19 06:04:42.333 WARN 7 --- [ main] kafka.client.ClientUtils$ : Fetching topic metadata with correlation id 0 for topics [Set(topic-jhipster)] from broker [id:0,host:localhost,port:9092] failed
java.nio.channels.ClosedChannelException: null
at kafka.network.BlockingChannel.send(BlockingChannel.scala:100)
at kafka.producer.SyncProducer.liftedTree1$1(SyncProducer.scala:73)
at kafka.producer.SyncProducer.kafka$producer$SyncProducer$$doSend(SyncProducer.scala:72)
at kafka.producer.SyncProducer.send(SyncProducer.scala:113)
at kafka.client.ClientUtils$.fetchTopicMetadata(ClientUtils.sca
The application will start in 30s...
██ ██ ██ ████████ ███████ ██████ ████████ ████████ ███████
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
██ ████████ ██ ███████ █████ ██ ██████ ███████
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
██████ ██ ██ ████████ ██ ██████ ██ ████████ ██ ██
:: JHipster 🤓 :: Running Spring Boot 1.4.1.RELEASE ::
:: http://jhipster.github.io ::
package org.kraven.repository.specification.util;
import cz.jirutka.rsql.parser.ast.ComparisonOperator;
import cz.jirutka.rsql.parser.ast.RSQLOperators;
/**
* Created by brunnels on 10/26/2016.
*/
public enum RsqlSearchOperation {
EQUAL(RSQLOperators.EQUAL),
@ruddell
ruddell / il8n.js
Created October 27, 2016 16:46 — forked from brunnels/il8n.js
Gulp tasks to update il8n json files in jhipster
'use strict';
var gulp = require('gulp'),
argv = require('yargs').argv,
tap = require('gulp-tap');
var config = require('./config');
module.exports = {
setProperty: setProperty,
import React from "react";
import { render } from "react-dom";
const ParentComponent = React.createClass({
getDefaultProps: function() {
console.log("ParentComponent - getDefaultProps");
},
getInitialState: function() {
console.log("ParentComponent - getInitialState");
return { text: "" };
@ruddell
ruddell / docker-compose.yml
Last active March 4, 2017 09:27
JHipster Rancher Microservices Example
version: '2'
services:
jhipstersamplegateway-app:
image: jhipster/jhipster-sample-app-gateway #image is hosted on Docker Hub
external_links:
- jhipstersamplegateway-mysql:mysql
- jhipster-registry:registry
environment:
- SPRING_PROFILES_ACTIVE=prod,swagger
- SPRING_CLOUD_CONFIG_URI=http://admin:admin@registry:8761/config
package com.mycompany.myapp.config;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.HttpMethod;
import org.springframework.security.config.annotation.web.builders.WebSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
@Configuration
public class WebSecurityConfiguration extends WebSecurityConfigurerAdapter {
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/axios/0.16.2/axios.js"></script>
<script type="text/javascript">
var Http = axios.create({
baseURL: 'http://localhost:8080/api',
});
Http.interceptors.request.use(function (config) {
config.xsrfCookieName = 'CSRF-TOKEN';
config.xsrfHeaderName = 'X-CSRF-TOKEN';
config.withCredentials = true;
@ruddell
ruddell / FooGatlingTest.scala
Created September 18, 2017 18:20
Sample Entity Gatling Test
import _root_.io.gatling.core.scenario.Simulation
import ch.qos.logback.classic.{Level, LoggerContext}
import io.gatling.core.Predef._
import io.gatling.http.Predef._
import org.slf4j.LoggerFactory
import scala.concurrent.duration._
/**
* Performance test for the Foo entity.
@ruddell
ruddell / SocialController.java
Last active January 13, 2018 04:12
WIP Ignite JHipster Social Login Support
package com.mycompany.myapp.web.rest;
import com.mycompany.myapp.config.Constants;
import com.mycompany.myapp.service.SocialService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.http.ResponseEntity;
import org.springframework.social.connect.Connection;
import org.springframework.social.connect.ConnectionFactoryLocator;
import org.springframework.social.connect.UserProfile;