首页>代码>spring实现忽略禁用@Required注解的实例>/spring-skip-disable-@required-annotation-example/src/main/java/com/memorynotfound/spring/core/required/StarWars.java
package com.memorynotfound.spring.core.required;

import org.springframework.beans.factory.annotation.Required;

public class StarWars {

    private TheForce theForce;

    public TheForce getTheForce() {
        return theForce;
    }

    @Required
    public void setTheForce(TheForce theForce) {
        this.theForce = theForce;
    }
}
最近下载更多
最代码-宋家辉  LV61 2021年11月11日
最近浏览更多
opq221  LV5 2023年3月10日
全栈小白  LV35 2023年1月8日
sunlzh888888  LV29 2021年12月10日
letmeCh7 2021年12月3日
暂无贡献等级
最代码-宋家辉  LV61 2021年11月11日
xiao菜  LV2 2021年6月2日
sleary  LV3 2021年5月4日
君知否  LV17 2021年4月7日
zuidaima008  LV5 2021年2月23日
HareXin  LV13 2021年2月10日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友