码迷,mamicode.com
首页 >  
搜索关键字:注解 反射    ( 21348个结果
mybatis-plus 设置主键自增
在实体类中添加@TableId注解: @Data public class DxApplication { @TableId(type = IdType.AUTO) private Long id; private String name; private Integer sort; } 在navi ...
分类:其他好文   时间:2021-06-11 18:35:34    阅读次数:0
SpringBoot的多模块项目引入其它module,但无法自动装配添加了注解的类
问题:两个module,A module引用了B module的一个类,A module添加了 B module的依赖,且这个类也通过注解注册到了bean工厂,但是A module 使用@Autowire 自动装配bean时报错, 以为可能是伪报错,运行也报错了 解决方法: 在启动类的SpringB ...
分类:编程语言   时间:2021-06-10 18:53:06    阅读次数:0
2.基于注解使用springMVC
web.xml的配置 <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-inst ...
分类:编程语言   时间:2021-06-10 18:32:56    阅读次数:0
反射文件配置
package com.oracler.demo02; public class Student { public void study(){ System.out.println("学生学习"); } } package com.oracler.demo02; import java.io.Fil ...
分类:其他好文   时间:2021-06-10 18:28:27    阅读次数:0
golang之反射
依赖的包为reflect。 Kind():返回最基础的类型。 type Kind uint const ( Invalid Kind = iota Bool Int Int8 Int16 Int32 Int64 Uint Uint8 Uint16 Uint32 Uint64 Uintptr Floa ...
分类:其他好文   时间:2021-06-09 15:36:10    阅读次数:0
@PostConstruct注解
@PostConstruct基本:@PostConstruct注解不是Spring提供的;是Java自己提供的注解。 Java中该注解的说明:1.@PostConstruct该注解被用来修饰一个非静态的void()方法。2.被@PostConstruct修饰的方法会在服务器加载Servlet的时候运 ...
分类:其他好文   时间:2021-06-08 23:18:06    阅读次数:0
配置优化
一、性能优化 1、属性properties 2、类型别名typeAliases 2.1、给每一个实体类取别名 2.2、扫描一个包 注意:2.1可以自己取别名;2.2默认会使用 Bean 的首字母小写的非限定类名来作为它的别名,如果要想自己起别名,需要在实体类上面添加注解 3、设置settings 看 ...
分类:其他好文   时间:2021-06-07 20:53:24    阅读次数:0
RabbitMQ系列之——初识
一、 消息队列概述 消息队列是指利用高效可靠的消息传递机制进行与平台无关的数据交流,并基于数据通信来进行分布式系统的集成。 通过提供消息传递和消息排队模型,它可以在分布式环境下提供应用解耦、弹性伸缩、冗余存储、流量削峰、异步通信、数据同步 等等功能,其作为 分布式系统架构 中的一个重要组件,有着举足 ...
分类:其他好文   时间:2021-06-06 18:50:48    阅读次数:0
Exception:NoSuchMethodException
bug天天有,今天异常多异常名称:NoSuchMethodException异常分析:找不到方法,方法调用错误?问题原因:反射获取此方法的Method对象时e.getName()提取的只是元素标签,要求提取元素标签里面的值 //1.创建SAXReader对象 SAXReader reader = n ...
分类:其他好文   时间:2021-06-05 18:14:59    阅读次数:0
注解与main方法
EnableAutoConfiguration This class-level annotation tells Spring Boot to “guess” how you want to configure Spring, based on the jar dependencies that ...
分类:其他好文   时间:2021-06-04 19:47:18    阅读次数:0
21348条   上一页 1 ... 5 6 7 8 9 ... 2135 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!