摘要:
1. 窄化请求 在类上用注解 @RequestMapping 相当于在加一层目录 访问时 : 项目名/user/....... 1 //窄化请求 2 @RequestMapping("user") 3 public class UserControoler {} 2. 参数绑定 1 @Respons 阅读全文
posted @ 2019-11-15 16:01
iscurry
阅读(150)
评论(0)
推荐(0)
摘要:
1. application.xml <bean id="exceptionHandler" class="com.xing.handler.MyExceptionHandler"></bean> 2.package handler Class ... 1 public class MyExcept 阅读全文
posted @ 2019-11-15 15:29
iscurry
阅读(133)
评论(0)
推荐(0)
摘要:
1:请解释下Spring框架中的IoC? Spring中的 org.springframework.beans 包和 org.springframework.context包构成了Spring框架IoC容器的基础。BeanFactory 接口提供了一个先进的配置机制,使得任何类型的对象的配置成为可能 阅读全文
posted @ 2019-11-15 11:39
iscurry
阅读(617)
评论(0)
推荐(0)
摘要:
1. web.xml 1 <!-- 解决post乱码问题 --> 2 <filter> 3 <filter-name>encoding</filter-name> 4 <filter-class>org.springframework.web.filter.CharacterEncodingFilt 阅读全文
posted @ 2019-11-15 11:35
iscurry
阅读(227)
评论(0)
推荐(0)
摘要:
所有方法均不能输出结果,也不报错 Process finished with exit code -1073741819 金山词霸冲突,额,彻底关闭 阅读全文
posted @ 2019-11-15 10:32
iscurry
阅读(122)
评论(0)
推荐(0)
浙公网安备 33010602011771号