package com.ybzn; /** * 代码生成器 * * @author Hugo * @time 2020/4/6 */ import com.baomidou.mybatisplus.annotation.DbType; import com.baomidou.mybatisplus. ...
分类:
其他好文 时间:
2020-04-06 15:28:07
阅读次数:
125
我们在实际项目开发中使用注解的目的:为了追求低耦合,降低后期的维护成本。平时自己在实际项目也会经常用到注解,所以想着自己总结一下注解的知识点,毕竟"好记性不如烂笔头",忘记的时候可以自己打开文章梳理一下,下面开始进入正文。 一、注解的本质: 从源码角度分析 [java.lang.annotation ...
分类:
编程语言 时间:
2020-04-06 13:58:36
阅读次数:
75
TestController.java package com.taotao.controller; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotyp ...
分类:
Web程序 时间:
2020-04-06 13:31:48
阅读次数:
79
[toc] 基于B站秦疆老师的课. 感谢! 注解 @since JDK1.5 不是程序本身, 可以对程序做出解释, 可以被其他程序读取(如 编译器) 内置注解 抑制编译器的警告信息 不鼓励使用被修饰的方法\属性\类, 即将弃用 元注解 meta annotation 给注解作注解 在java.lan ...
分类:
其他好文 时间:
2020-04-06 11:51:18
阅读次数:
45
## 1 通过Controller控制跳转 package com.syu.controller; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.Req ...
分类:
编程语言 时间:
2020-04-05 13:21:15
阅读次数:
68
项目结构如下(Idea) 代码 package com.syu.config; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuratio ...
分类:
编程语言 时间:
2020-04-05 09:17:12
阅读次数:
99
package com.syu.config; import org.springframework.context.annotation.Configuration; import org.springframework.web.servlet.config.annotation.ViewCont ...
分类:
编程语言 时间:
2020-04-05 09:14:39
阅读次数:
98
1、 在一个controller内的统一处理示例 import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; ...
分类:
编程语言 时间:
2020-03-31 14:51:14
阅读次数:
99
方法切点 execution,作用方法,最常用。指定方法返回类型,类名,方法名,参数名等与方法相关的部件。 @annotation,作用方法。方法注解类名 目标类切点 within,作用目标类。指定全路径类名。 target,作用目标类。指定类名。 @within,作用目标类。类型注解类名。 @ta ...
分类:
其他好文 时间:
2020-03-31 01:18:36
阅读次数:
106
安装kube state metrics 1. 下载 1. 修改namespace 将默认的namespace从kube system修改成monitoring 1. 在service.yaml追加如下annotation 修改后的server.yml文件 1. 启动服务 prometheus 收集 ...
分类:
其他好文 时间:
2020-03-30 19:45:12
阅读次数:
109