package com.llf.utils; import org.springframework.stereotype.Component; import org.springframework.web.servlet.config.annotation.InterceptorRegistry; ...
分类:
编程语言 时间:
2020-05-02 19:21:14
阅读次数:
58
启动类加入@ServletComponentScan注解 package com.llf.utils; import javax.servlet.*; import javax.servlet.annotation.WebFilter; import java.io.IOException; @We ...
分类:
编程语言 时间:
2020-05-02 19:10:26
阅读次数:
82
一. java注解与注释注解区别,注释注解对于新手来说很容易混淆。注解与注释有什么不同点 ? 1.定义不同:注解:英名为Annotation,它是JDK5.0及以后版本引入的一个特性。 与类、接口、枚举是在同一个层次,可以成为java 的一个类型。用一个词描述注解 元数据,它是一种描述数据的数据。所 ...
分类:
编程语言 时间:
2020-05-01 18:26:10
阅读次数:
81
Spring定义了七种传播行为: 一、开启事物管理 //import org.springframework.transaction.annotation.EnableTransactionManagement; `@SpringBootApplication @EnableTransactionM ...
分类:
编程语言 时间:
2020-04-30 15:49:13
阅读次数:
91
先上效果图 下面再上 https://github.com/JustinRoom/WheelViewDemo 中需要用到的几个类 1. IWheelViewSetting.java import android.support.annotation.ColorInt; /** * Wheel vie ...
分类:
移动开发 时间:
2020-04-29 01:15:42
阅读次数:
66
package com.llf.config; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.sp ...
分类:
编程语言 时间:
2020-04-28 22:58:20
阅读次数:
79
个人博客 "http://www.milovetingting.cn" Java中的注解和反射 注解 Java注解(Annotation)又称Java标注,是JDK5.0引入的一种注释机制。 注解定义 通过 来声明一个注解 元注解 对注解进行注解的类就是元注解(meta annotation),在自 ...
分类:
编程语言 时间:
2020-04-27 11:45:14
阅读次数:
61
```javapackage com.atguigu.security.config;import javax.sql.DataSource;import org.springframework.beans.factory.annotation.Autowired;import org.spring... ...
分类:
编程语言 时间:
2020-04-27 09:14:11
阅读次数:
59
开始: import com.alibaba.fastjson.JSONObject; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import or ...
分类:
其他好文 时间:
2020-04-26 20:54:30
阅读次数:
75
注解:@interface 自定义注解的语法 自定义注解: 使用@interface自定义注解时,自动继承了java.lang.annotation.Annotation接口,由编译程序自动完成其他细节。在定义注解时,不能继承其他的注解或接口。@interface用来声明一个注解,其中的每一个方法实 ...
分类:
其他好文 时间:
2020-04-26 11:23:02
阅读次数:
68