Skip to content

Instantly share code, notes, and snippets.

View denispeyrusaubes's full-sized avatar

Peyrusaubes denispeyrusaubes

View GitHub Profile
server:
port: 8080
endpoints:
restart:
enabled: true
shutdown:
enabled: true
health:
sensitive: false
server:
port: 8080
endpoints:
restart:
enabled: true
shutdown:
enabled: true
health:
sensitive: false
server:
port: 8080
endpoints:
restart:
enabled: true
shutdown:
enabled: true
health:
sensitive: false
package com.retengr.exercice3;
import com.retengr.main.Main;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.http.MediaType;
package com.retengr.configuration;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport;
import springfox.documentation.builders.RequestHandlerSelectors;
import springfox.documentation.spi.DocumentationType;
import springfox.documentation.spring.web.plugins.Docket;
import springfox.documentation.swagger2.annotations.EnableSwagger2;
INSERT INTO runners VALUES (1, 'mkyong', '[email protected]');
INSERT INTO runners VALUES (2, 'alex', '[email protected]');
INSERT INTO runners VALUES (3, 'joel', '[email protected]');
--DROP TABLE runners IF EXISTS;
CREATE TABLE runners (
id INTEGER PRIMARY KEY,
name VARCHAR(30),
email VARCHAR(50),
);
CREATE TABLE splits (
id INTEGER PRIMARY KEY,
package com.retengr.Exercice2JPA;
import com.retengr.main.Main;
import com.retengr.model.Client;
import com.retengr.service.BanqueService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
package com.retengr.main;
import com.retengr.model.Client;
import com.retengr.service.BanqueService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
package com.retengr.service;
import com.retengr.configuration.BanqueConfiguration;
import com.retengr.configuration.DBConfiguration;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.test.context.ContextConfiguration;