03 2021 档案
摘要:导入JackJSON包 <!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-databind --> <dependency> <groupId>com.fasterxml.jackson.core</
阅读全文
摘要:只要改了java代码就 redeploy 只要改了配置文件 重新加载tomcat 只改了前端界面 就只需要update classes and resources
阅读全文
摘要:web.xml配置 <web-app> <display-name>Archetype Created Web Application</display-name> <servlet> <servlet-name>springmvc</servlet-name> <servlet-class>org
阅读全文
摘要:org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 1 in XML document from class path resource [] is invalid; nested exception
阅读全文
摘要:一、点Project Structure 二、选中WEB-INF点击新建文件的图标 三、点+将所有的jar包导入进去 点ok就导入了,然后apply,ok;
阅读全文
摘要:今天读动态代理是遇到的代码,从网上查了一下,在这里做一下标记 final SecurityManager sm = System.getSecurityManager(); if (sm !=null) { checkProxyAccess(Reflection.getCallerClass(),
阅读全文
摘要:Spring注解说明 @Autowire 自动注入 @Nullable 标记了这个字段说明这个字段可以为null @Component 组件,放在类上,说明这个类被Spring管理了 @value 写在要赋值的属性上 相当于 < bean > 中的 < property name="name" va
阅读全文
摘要:@Autowired(有required参数) @Autowired原理: 举例:@Autowired private BookService bookService; 1)、先按照类型去容器中找到对应的组件;bookService = ioc.getBean(BookService.class)
阅读全文
摘要:Struts 过滤器在服务器启动时创建 过滤器:web.xml中的StrutsPrepareAndExecuteFilter 在创建过滤器的时候会执行init()方法(在这个方法中主要去加载配置文件 默认加载struts-default.xml,struts-plugin.xml,struts.xm
阅读全文

浙公网安备 33010602011771号