摘要:
springAOP中annotation的具体使用 注解类 对象 spring aop @annotation的用法_gitcat的博客-CSDN博客_@annotation spring@annotation用在定义连接点时,对连接点进行限制。比如我们想对标注了@Deprecated的方法进行拦截 阅读全文
摘要:
Eclipse Maven Install打包报错:Perhaps you are running on a JRE rather than a JDK? 解决方法 Maven Install打包报错:Perhaps you are running on a JRE rather than a JD 阅读全文
摘要:
Intellij idea Perhaps you are running on a JRE rather than a JDK 使用intellij idea项目maven编译时发现报错误: No compiler is provided in this environment. Perhaps 阅读全文
摘要:
idea运行maven install报错:Perhaps you are running on a JRE rather than a JDK? 今天再idea终端里面输入“mvn install -Dmaven.test.skip=true”命令,报错: [ERROR] No compiler 阅读全文
摘要:
Documented元注解 这个注解对程序没什么影响,只是在对于生成帮助文档时有帮助。 Documented:说明该注解将会被包含在JavaDoc文档中,我们常见的JDK帮助文档参考手册就是JavaDoc。 编写一个普通的注解,并且保证(RetentionPolicy.RUNTIME) packag 阅读全文
摘要:
Java注解之Retention、Documented、Inherited介绍 Retention注解Retention(保留)注解说明,这种类型的注解会被保留到那个阶段. 有三个值:1.RetentionPolicy.SOURCE —— 这种类型的Annotations只在源代码级别保留,编译时就 阅读全文
摘要:
e.printStackTrace()在日志中输出 log.error("系统异常:",e); 通常e.getMessage()并不能获取全部的错误信息,需要用到e.printStackTrace()查看完整错误信息,但是这个方法是void 只能在控制台输出。 介绍两种方法,其实logger已经帮我 阅读全文
resolution will not be reattempted until the update interval of XXX has elapsed or updates are force
摘要:
resolution will not be reattempted until the update interval of XXX has elapsed or updates are force 环境 Java:1.8 maven:3.6.1 前言 我只是在pom.xml文件中,将versio 阅读全文
摘要:
Java——程序包不存在【三种解决方法】 目录 一、问题描述 二、解决方案 方法一:maven包管理的clean方法 方法二:清理缓存 方法三:设置配置 三、结语 一、问题描述 报错:xxx程序包不存在 二、解决方案 方法一:maven包管理的clean方法 1、把项目的MavenProject打开 阅读全文
摘要:
‘project JDK is not define‘ 解决方案 最近想玩玩javap反编译然后捣鼓来捣鼓去,出现了这个问题,解决方案之一 1.打开【File - Project Structure】 2.修改【Module SDK】 3.点击OK 完成 https://blog.csdn.net/ 阅读全文
摘要:
spring aop获取方法上与类上的注解 今天正好在写一个自定义鉴权的包,是利用AOP实现的,其中我定义了两个注解,一个是@Authorize,作用是标记该接口或该控制层是需要什么身份、权限才可以访问。一个是@Anonymous,作用是标记该接口或该控制层是否可以匿名访问(跳过鉴权、登陆验证)。那 阅读全文