随笔分类 - Java EE
摘要:如题: 导致这一问题的原因:使用了重复的property-placeholder 如一个配置文件中使用了 而另一处使用了 解决: 主要从以下几个地方去解决: 1. 去掉一处的propertyConfigurer配置,替换成context:property-placeholder 2. 两处都添加ig
阅读全文
摘要:1. 一对一映射 例子表: 学生表 地址表 POJO类 方法一: 使用点符号和嵌套对象 映射接口: 方法二: 使用嵌套ResultMap 使用<association> association也可以用于内联resultMap, 如下: 方法三: 使用嵌套select <association pro
阅读全文
摘要:1. 简单的select映射 映射接口: 2. 简单的insert映射 映射接口: 自增主键: useGeneratedKeys="true" keyProperty="studId" 3. 简单的update映射 4. 简单的delete映射 映射接口: 5. 简单的结果映射 resultMap
阅读全文
摘要:0. 大背景 众所周知,REST架构已经成为现代服务端的趋势。 很多公司,已经采用REST作为App, H5以及其它客户端的服务端架构。 1. 什么是JAX-RS? JAX-RS是JAVA EE6 引入的一个新技术。 JAX-RS即Java API for RESTful Web Services,
阅读全文
摘要:用过Spring MVC的人都知道,我们如何在Controller中注入Service,可以使用@Resource注解的方法。 有时候,实际在项目的过程中,我们需要在某个Servlet中使用Service, 但是由于Spring MVC中的Servlet都是由 DispatcherServlet统一
阅读全文
摘要:http://blog.csdn.net/blacklin520/article/details/6854163
阅读全文
摘要:1. In the my_domain domain structure, expandthe Services tab and select the Data Sources node. In the Data Sources table, clickon New and select Generic Data Source as shown in the following screenshot2. In Create a New JDBC Data Source, specify a data source name and JNDI Name(for example, jdbc/Ora
阅读全文
摘要:http://localhost:7001/console
阅读全文