Skip to content

Instantly share code, notes, and snippets.

@ereshzealous
Created January 14, 2020 14:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ereshzealous/aed5fa8951853b26b708945be8e13b3d to your computer and use it in GitHub Desktop.
Save ereshzealous/aed5fa8951853b26b708945be8e13b3d to your computer and use it in GitHub Desktop.
package com.minikube.sample.rest.controller;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;
/**
* Created By Gorantla, Eresh on 13/Jan/2020
**/
@Component
@Scope("prototype")
public class PrototypeBean {
private Logger logger = LoggerFactory.getLogger(this.getClass());
public void printData() {
logger.info("Prototype Bean => {}", this.hashCode());
logger.info(".................................................");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment