Skip to content

Instantly share code, notes, and snippets.

View taylormathewson's full-sized avatar

Taylor Mathewson taylormathewson

  • Toronto, Canada
View GitHub Profile
@scathers
scathers / ElideController.java
Created January 24, 2018 20:28
Spring Boot Elide Integration
package cathers.controller;
import java.security.Principal;
import java.util.Map;
import javax.persistence.EntityManagerFactory;
import javax.servlet.http.HttpServletRequest;
import javax.ws.rs.core.MultivaluedHashMap;
import javax.ws.rs.core.MultivaluedMap;
import org.hibernate.SessionFactory;
import org.slf4j.Logger;
@bloodredsun
bloodredsun / ExampleThatLogs.java
Last active March 9, 2022 08:16
Unit testing logback based logging statements
package com.brs;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* Simple class that we use to trigger a log statement.
*/
public class ExampleThatLogs {