提交 286c234b 编写于 作者: 黄勇

【I】代码优化

上级 ceb95bab
......@@ -16,17 +16,13 @@ public class ActionAspect extends AspectProxy {
@Override
public void before(Class<?> cls, Method method, Object[] params) throws Throwable {
if (logger.isDebugEnabled()) {
logger.debug("---------- begin ----------");
}
logger.debug("---------- begin ----------");
begin = System.currentTimeMillis();
}
@Override
public void after(Class<?> cls, Method method, Object[] params, Object result) throws Throwable {
logger.info("time: " + (System.currentTimeMillis() - begin) + "ms");
if (logger.isDebugEnabled()) {
logger.debug("----------- end -----------");
}
logger.debug("----------- end -----------");
}
}
......@@ -11,7 +11,7 @@ import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import org.smart4j.framework.dao.DataSet;
import org.smart4j.framework.orm.DataSet;
import org.smart4j.framework.tx.annotation.Service;
import org.smart4j.framework.tx.annotation.Transaction;
import org.smart4j.plugin.rest.Rest;
......
package org.smart4j.sample.service.impl;
import org.smart4j.framework.dao.DataSet;
import org.smart4j.framework.orm.DataSet;
import org.smart4j.framework.tx.annotation.Service;
import org.smart4j.framework.tx.annotation.Transaction;
import org.smart4j.framework.util.DateUtil;
......
......@@ -3,11 +3,11 @@ package org.smart4j.sample.service.impl;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import org.smart4j.framework.dao.DataSet;
import org.smart4j.framework.dao.bean.Pager;
import org.smart4j.framework.ioc.annotation.Inject;
import org.smart4j.framework.mvc.UploadHelper;
import org.smart4j.framework.mvc.bean.Multipart;
import org.smart4j.framework.orm.DataSet;
import org.smart4j.framework.tx.annotation.Service;
import org.smart4j.framework.tx.annotation.Transaction;
import org.smart4j.sample.Tool;
......
......@@ -2,7 +2,7 @@ package org.smart4j.sample.soap.impl;
import java.util.List;
import java.util.Map;
import org.smart4j.framework.dao.DataSet;
import org.smart4j.framework.orm.DataSet;
import org.smart4j.framework.tx.annotation.Service;
import org.smart4j.framework.tx.annotation.Transaction;
import org.smart4j.sample.entity.Product;
......
......@@ -9,7 +9,7 @@ import org.smart4j.plugin.rest.RestHelper;
import org.smart4j.sample.entity.Product;
import org.smart4j.sample.rest.ProductService;
public class ProductServiceRestTest_ {
public class ProductServiceRestTest {
private String wadl = "http://localhost:8080/smart-sample/rest/product";
private ProductService productService = RestHelper.createClient(wadl, ProductService.class);
......
......@@ -9,7 +9,7 @@ import org.smart4j.plugin.soap.SoapHelper;
import org.smart4j.sample.entity.Product;
import org.smart4j.sample.soap.ProductService;
public class ProductServiceSoapTest_ {
public class ProductServiceSoapTest {
private String wsdl = "http://localhost:8080/smart-sample/soap/product";
private ProductService productService = SoapHelper.createClient(wsdl, ProductService.class);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册