Java
Joker168
小小程序员
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
IDEA Tomcat乱码
问题:idea tomcat乱码 解决文件添加-Dfile.encoding=UTF-8 idea安装目录bin目录下idea.exe.vmoptions 和 idea64.exe.vmoptions文件以及C:\Users\用户名\AppData\Roaming\JetBrains\IntelliJIdea2020.2\下面的idea.exe.vmoptions 或 idea64.exe.vmoptions 文件 末尾添加-Dfile.encoding=UTF-8 ...原创 2021-01-28 17:01:15 · 222 阅读 · 0 评论 -
Java反射,通过对象获取属性及属性值
package com.test.test; import java.lang.reflect.Field; public class Test { public static void main(String[] args) throws IllegalAccessException { Person p1 = new Person("张三", "高中生"); getObj(p1); } public static void getObj(Object obj) throws Ille原创 2020-12-21 17:24:04 · 803 阅读 · 0 评论
分享