摘要:
方式一:继承WebMvcConfigurerAdapter类 1、使用一个类来继承 package com.wbg.springJavaConfig.spring; import org.springframework.context.annotation.Bean; import org.spri 阅读全文
摘要:
进行赋值: 阅读全文
摘要:
首先创建类、接口、数据库: package com.wbg.springJavaConfig.entity; public class Admin { private int aId; private String aAccount; private String aPassword; privat 阅读全文
摘要:
通过注解实现ServiceImpl业务 一、使用@Component装配Bean 1、 定义类:User 在类上面加@Component注解,在属性上面加@Value值 package com.wbg.springxmlbean.entity; import org.springframework. 阅读全文