03 2020 档案

摘要:pom.xml <dependencies> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-context</artifactId> <version>5.0.2.RELEASE</version> </ 阅读全文
posted @ 2020-03-31 19:58 ☆♂安♀★ 阅读(2451) 评论(0) 推荐(0) 编辑
摘要:1、配置来至bean.xml @RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration(locations = "classpath:bean.xml") //表示在编译完成后在类路径下的beean.xml文件 public clas 阅读全文
posted @ 2020-03-31 00:28 ☆♂安♀★ 阅读(3619) 评论(0) 推荐(0) 编辑
摘要:因为在Test里面使用了注解@Autowired 引入来至bean.xml文件的内容 ,而在Test没有没有办法自动引入,需要在Test类上加上注解 @ContextConfiguration(locations = "classpath:bean.xml")不然会报以下错误 Caught exce 阅读全文
posted @ 2020-03-30 18:52 ☆♂安♀★ 阅读(6348) 评论(0) 推荐(0) 编辑
摘要:问题:maven执行package命令打包时,src/main/java路径下的properties文件偶尔丢失 解决方式:pom.xml中加入resources配置 <build> <resources> <resource> <directory>src/main/java</directory 阅读全文
posted @ 2020-03-21 02:15 ☆♂安♀★ 阅读(914) 评论(0) 推荐(0) 编辑
摘要:找到work\Catalina\localhost\ 然后访问响应的JSP地址才会动态生成到这个路径下面,不访问不会生成,在org\apache\jsp 下面 阅读全文
posted @ 2020-03-17 02:01 ☆♂安♀★ 阅读(1780) 评论(5) 推荐(0) 编辑
摘要:/* * 注解类 * */ @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.METHOD) public @interface Demo04Check { } /**要执行的小明定义的计算器类 * @author :cza * @dat 阅读全文
posted @ 2020-03-10 17:22 ☆♂安♀★ 阅读(667) 评论(0) 推荐(0) 编辑
摘要:public static void main(String[] args) throws IOException, NoSuchMethodException, InvocationTargetException, IllegalAccessException, InstantiationExce 阅读全文
posted @ 2020-03-10 03:18 ☆♂安♀★ 阅读(585) 评论(0) 推荐(0) 编辑
摘要:反射类,获取类的构造函数 public class Demo01Person { public String getName() { return name; } public Demo01Person(String name, Integer age) { this.name = name; th 阅读全文
posted @ 2020-03-10 02:50 ☆♂安♀★ 阅读(2028) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示