前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
/* * Copyright (c) 2019, PANNK and/or its affiliates. All rights reserved. * * * * * * * * * * * * * * * * * * * * */ package com.pannk.demo.commonconfig.profiles; import org.springframework.context.annotation.Profile; import org.springframework.stereotype.Component; /** * @author:wolf * @date:2020/11/2 21:59 **/ @Component @Profile("dev") public class Dev { public Dev() { System.out.println("Dev bean has loaded!"); } }