67,512
社区成员
发帖
与我相关
我的任务
分享
package com.csjl.study.spring.cache;
public class TestBean {
}
package com.csjl.study.spring.cache;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import java.util.Date;
@Configuration
public class TestConfig {
@Bean
public TestBean testBean(){
return new TestBean();
}
@Bean
public Date d1(TestBean testBean){
return new Date(System.currentTimeMillis());
}
}