java
文章平均质量分 74
oogc
这个作者很懒,什么都没留下…
展开
-
JPA 注解以及pojo转为表 (二)
7.一对多映射关系 有T_One和T_Many两个表,他们是一对多的关系,注解范例如下 主Pojo 01.@Entity 02.@Table(name = "T_ONE") 03.public class One implements Serializable { 04.private static final long serialVersionUID = 1...原创 2012-05-03 17:11:05 · 131 阅读 · 0 评论 -
Spring
spring非maven下载 1. 直接粘到地址栏或者下载工具里,每次有更新只要改版本号就可以 http://repo.springsource.org/libs-release-local/org/springframework/spring/3.2.8.RELEASE/spring-framework-3.2.8.RELEASE-dist.zip...原创 2017-03-08 15:56:13 · 76 阅读 · 0 评论 -
开发工具
开发工具安装及插件安装使用Sublime text 下载:http://www.sublimetext.com/ Package Control组件安装: 提供了二种安装方式,建业使用第二种 https://packagecontrol.io/installation Perferences->pac...原创 2017-11-01 10:44:49 · 111 阅读 · 0 评论 -
springboot2
@ConfigurationProperties(prefix = "config2",locations="classpath:test.properties")1.配置文件解析 Spring Boot使用“习惯优于配置”(项目中存在大量的配置,此外还内置了一个习惯性的配置,让你无需手动进行配置)的理念让你的项目快速运行起来。所以,我们要想把Spring Boot玩的溜,就要懂得...原创 2017-10-24 16:34:48 · 123 阅读 · 0 评论 -
spring boot
idea 使用 spring boot 创建一个空的Maven 项目 Spring Boot依赖 使用 org.springframework.boot groupId 。 通常,让你的Maven POM文件继承 spring-boot-starter-parent,并声明一个或多个 Starter POMs依赖即可。Spring Boot也提供了一个可选的...原创 2017-09-13 11:39:58 · 127 阅读 · 0 评论 -
android eclipse错误集合
1. devices.xml 错误 [2016-09-14 15:20:11 - Android SDK] Error when loading the SDK: Error: Error parsing D:\Users\shouzhuo3\AppData\Local\Android\sdk\system-images\android-22\android-we...2016-09-14 15:30:56 · 245 阅读 · 0 评论 -
maven项目 命令创建 运行
建一个空的普通app项目mvn archetype:create -B -DgroupId=net.jwsz.snap -DartifactId=snap /* //Create Maven Applaction Project mvn archetype:create -B -DgroupId=net.jwsz.snap -artifactId=snap ...原创 2012-07-27 10:19:39 · 67 阅读 · 0 评论 -
maven项目创建 tools.jar错误
创建 maven 项目 pom.xml出错! 运行时错误: 12-7-26 下午05时01分20秒: Build errors for show; org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project show: Could not resolve de...原创 2012-07-27 10:02:24 · 146 阅读 · 0 评论 -
MyEclipse项目导入Eclipse中
将MyEclipse项目导入Eclipse中 1.确保你的eclipse是javaee版本的,或者已经安装看wtp插件 2.修改eclipse工程下的.project文件: 在 中加入 org.eclipse.wst.common.project.facet.core.nature org.eclipse.wst.co...原创 2012-02-22 13:06:44 · 67 阅读 · 0 评论 -
spring mvc + ibatis + freemarker
spring-mvc.xml <?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context...2012-10-25 16:52:55 · 102 阅读 · 0 评论 -
cxf soap header 获取
1.cxf soap header 获取public class E { private WebServiceContext context; public String a(){ Map<String, Object> headers = context.getMessageContext(); List<Header> headerList =...2012-10-19 18:00:36 · 606 阅读 · 0 评论 -
cxf 客户端生成
1.apache-cxf-2.7.0\bin\wsdl2java.bat 运行 E:\userLib\apache-cxf-2.7.0\bin>wsdl2java.bat -p com.test -d E:/test -client -impl http://127.0.0.1:2011/CXFServer/services/CxfInterFace?wsdlE:\us...2012-10-18 13:17:36 · 106 阅读 · 0 评论 -
Java异常 - 缺失包 对应的错误
1 - java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory 添加包common-logging.jar2 - java.lang.ClassNotFoundException: javax.transaction.Synchronization 添加包jta.jar(hiberante)3 - ...原创 2012-05-07 08:39:53 · 139 阅读 · 0 评论 -
idea springboot 热部署
1.添加依赖 <!--热部署依赖,生产环境、应用被打成jar包后,自动失效--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</a...原创 2018-05-31 17:11:28 · 129 阅读 · 0 评论