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
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. |
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
<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; |
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
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 { |
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
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 |
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
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: "" }; |