Hexo魔改未读
Butterfly重装日记自定义 Twikoo 访客通知邮件模板 效果预览
点击查看参考教程
压缩后的代码原通知模板备份注意其中我的博客地址、logo 什么的,需要修改为你自己的。1<div><div id="isForwardContent"><div><div id="content"><div style=" background: white; width: 95%; max-width: 800px; margin: auto auto; border-radius: 5px; border: #49b1f5 1px solid; overflow: hidden; -webkit-box-sha ...
Java开发未读
SSM常用注解注解Spring常用注解
注解
作用范围
说明
@Import
类
导入其他配置类
@Autowired
属性或方法
由Spring提供,只按照byType注入
@Qualifer
属性或方法
使用@Autowired时,可以使用@Qualifer(“beanName”)明确指定Bean的名称进行注入(适用于多个同一类型的Bean)
@Resource
属性或方法
由J2EE提供,按照名称进行装配,默认按照byName自动注入
@Configuration
类
指定当前类为一个配置类
@Component
类
把当前类对象存入spring容器中
@ComponentScan
主配置类
指定spring在创建容器时要扫描的包
@Bean
类
把当前方法的返回值作为bean对象存入spring的ioc容器中
@Value
属性或set方法
注入数据(例: @Value(“${jdbc.driver}”))
@Controller
类
用于表现层
@Service
类
用于业务层
@Respository
类
用于持久层
@Asp ...