码迷,mamicode.com
首页 >  
搜索关键字:注解 反射    ( 21348个结果
Spring详解(十一)----Bean 的作用域
1、Bean 的作用域介绍 我们可以通过XML<bean> 元素中的 scope 属性 或者 @Scope 注解 来设置,例如: XML 中设置作用域:<bean id="" class="" scope="prototype" />注解设置作用域: @Scope("prototype") 或者 @ ...
分类:编程语言   时间:2020-12-30 10:58:35    阅读次数:0
深入理解Spring Security授权机制原理
原创/朱季谦 在Spring Security权限框架里,若要对后端http接口实现权限授权控制,有两种实现方式。 一、一种是基于注解方法级的鉴权,其中,注解方式又有@Secured和@PreAuthorize两种。 @Secured如: 1 @PostMapping("/test") 2 @Sec ...
分类:编程语言   时间:2020-12-30 10:55:50    阅读次数:0
表字段与mysql关键字冲突
项目启动提示语法错误[42000][1064] You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to u ...
分类:数据库   时间:2020-12-29 12:06:59    阅读次数:0
spring循环依赖
两个bean通过构造函数互为依赖项,spring容器就无法实例化这两个bean,会出现BeanCurrentlyInCreationException异常。 如何解决循环依赖: 1:加@Lazy注解 2: 使用setter注入(或字段上加@Autowired) 3:实现ApplicationCont ...
分类:编程语言   时间:2020-12-29 11:32:47    阅读次数:0
TypeScript 类型注解和类型推断
type annotation 类型注解 let count: number; count = 1; type inference 类型推断 const one = 1; const two = 2; const three = one + two; const person = { name: " ...
分类:其他好文   时间:2020-12-29 11:26:26    阅读次数:0
Java 反射
三种获取Class对象的方式 Person.java package com.domain; public class Person { } reflecDemo.java package com.reflec; import com.domain.Person; public class refl ...
分类:编程语言   时间:2020-12-29 11:07:52    阅读次数:0
Java 持久层框架之 MyBatis
MyBatis简介MyBatis是一个基于Java的持久层框架,它内部封装了JDBC,使开发者只需关注SQL语句本身,而不用再花费精力去处理诸如注册驱动、创建Connection、配置Statement等繁杂过程。Mybatis通过xml或注解的方式将要执行的各种Statement、PreparedStatement等配置起来,并通过Java对象和Statement中SQL的动态参数进行映射生成最
分类:编程语言   时间:2020-12-29 11:05:15    阅读次数:0
Spring注解驱动——IOC
体系结构概述: @Bean 之前时候,在xml配置文件使用: <bean id="person" class="com.atguigu.bean.Person" scope="prototype" > <property name="age" value="${}"></property> <pro ...
分类:编程语言   时间:2020-12-28 12:01:10    阅读次数:0
【转】SpringBoot之@EnableAutoConfiguration注解
首先Spring Boot项目中都会如下启动类: @SpringBootApplication public class Application { public static void main(String[] args) { SpringApplication.run(Application. ...
分类:编程语言   时间:2020-12-28 11:58:46    阅读次数:0
Java web学习
* Field:成员变量 * 操作: 1. 设置值 * void set(Object obj, Object value) 2. 获取值 * get(Object obj) 3. 忽略访问权限修饰符的安全检查 * setAccessible(true):暴力反射 * Constructor:构造方 ...
分类:编程语言   时间:2020-12-28 11:06:38    阅读次数:0
21348条   上一页 1 ... 33 34 35 36 37 ... 2135 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!