update: 清理编译警告

This commit is contained in:
Wendal Chen 2019-04-29 11:52:09 +08:00
parent ac6a409747
commit 18166d2bea
16 changed files with 20 additions and 38 deletions

View File

@ -19,7 +19,6 @@
<dependency>
<groupId>org.nutz</groupId>
<artifactId>nutzboot-starter-caffeine</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>

View File

@ -1,20 +1,13 @@
package io.nutz.demo.simple.module;
import java.util.List;
import org.nutz.dao.Cnd;
import org.nutz.dao.Dao;
import org.nutz.dao.pager.Pager;
import org.nutz.ioc.loader.annotation.Inject;
import org.nutz.ioc.loader.annotation.IocBean;
import org.nutz.mvc.annotation.At;
import org.nutz.mvc.annotation.Ok;
import org.nutz.mvc.annotation.Param;
import io.nutz.demo.simple.bean.User;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
@Api("user")

View File

@ -39,7 +39,7 @@ public class MainLauncher {
user2.setCreateAt(Times.getTS());
userService.createOrUpdateData(user1);//添加user1
userService.createOrUpdateData(user2);//添加user2
Map map = userService.getUser("0001");
Map<String, Object> map = userService.getUser("0001");
log.debug("user 0001:\r\n" + Json.toJson(map));
Pagination pagination = userService.listPage(1, 10, "", true, false, "", "");
log.debug("pagination:\r\n" + Json.toJson(pagination));

View File

@ -1,8 +1,11 @@
package io.nutz.demo.simple.service;
import io.nutz.demo.simple.bean.User;
import io.nutz.demo.simple.page.Pagination;
import io.nutz.demo.simple.utils.ElasticsearchUtil;
import static org.elasticsearch.common.xcontent.XContentFactory.jsonBuilder;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import org.elasticsearch.action.search.SearchRequestBuilder;
import org.elasticsearch.action.search.SearchResponse;
import org.elasticsearch.action.search.SearchType;
@ -13,18 +16,15 @@ import org.elasticsearch.index.query.QueryBuilders;
import org.elasticsearch.search.SearchHits;
import org.elasticsearch.search.fetch.subphase.highlight.HighlightBuilder;
import org.elasticsearch.search.fetch.subphase.highlight.HighlightField;
import org.elasticsearch.search.sort.SortOrder;
import org.nutz.ioc.loader.annotation.Inject;
import org.nutz.ioc.loader.annotation.IocBean;
import org.nutz.lang.Strings;
import org.nutz.log.Log;
import org.nutz.log.Logs;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import static org.elasticsearch.common.xcontent.XContentFactory.jsonBuilder;
import io.nutz.demo.simple.bean.User;
import io.nutz.demo.simple.page.Pagination;
import io.nutz.demo.simple.utils.ElasticsearchUtil;
/**
* Created by wizzer on 2018/6/15.

View File

@ -19,7 +19,6 @@
<dependency>
<groupId>org.nutz</groupId>
<artifactId>nutzboot-starter-email</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
</project>

View File

@ -1,17 +1,16 @@
package io.nutz.demo.simple.handler;
import java.io.IOException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.eclipse.jetty.server.Request;
import org.eclipse.jetty.server.handler.ErrorHandler;
import org.eclipse.jetty.servlet.ErrorPageErrorHandler;
import org.nutz.ioc.loader.annotation.IocBean;
import org.nutz.json.Json;
import org.nutz.lang.util.NutMap;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.PrintWriter;
@IocBean
public class MyHandler extends ErrorPageErrorHandler {
@Override

View File

@ -14,7 +14,6 @@ import org.nutz.dao.Dao;
import org.nutz.dao.util.Daos;
import org.nutz.ioc.loader.annotation.Inject;
import org.nutz.ioc.loader.annotation.IocBean;
import org.nutz.lang.random.R;
import org.nutz.mvc.annotation.At;
import org.nutz.mvc.annotation.Ok;

View File

@ -3,10 +3,10 @@ package io.nutz.demo.simple.module;
import javax.servlet.http.HttpSession;
import org.apache.shiro.SecurityUtils;
import org.apache.shiro.crypto.hash.Sha256Hash;
import org.apache.shiro.authc.UsernamePasswordToken;
import org.apache.shiro.subject.Subject;
import org.apache.shiro.util.ThreadContext;
import org.nutz.dao.Dao;
import org.nutz.integration.shiro.SimpleShiroToken;
import org.nutz.ioc.loader.annotation.Inject;
import org.nutz.ioc.loader.annotation.IocBean;
import org.nutz.mvc.annotation.At;

View File

@ -11,8 +11,6 @@ import org.apache.shiro.realm.AuthorizingRealm;
import org.apache.shiro.subject.PrincipalCollection;
import org.apache.shiro.util.ByteSource;
import org.nutz.dao.Dao;
import org.nutz.integration.shiro.AbstractSimpleAuthorizingRealm;
import org.nutz.integration.shiro.SimpleShiroToken;
import org.nutz.ioc.loader.annotation.Inject;
import org.nutz.ioc.loader.annotation.IocBean;

View File

@ -27,7 +27,6 @@
<dependency>
<groupId>org.nutz</groupId>
<artifactId>nutzboot-starter-prevent-duplicate-submit</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.nutz</groupId>

View File

@ -73,8 +73,8 @@ public class MainLauncher {
}
public void init() {
System.out.println("请访问: http://127.0.0.1:8080/index");
System.out.println("请访问错误后恢复token http://127.0.0.1:8080/index2");
log.info("请访问: http://127.0.0.1:8080/index");
log.info("请访问错误后恢复token http://127.0.0.1:8080/index2");
}
}

View File

@ -59,7 +59,7 @@ public class FastdfsService {
IMAGE_THUMB_SUFFIX = conf.get(PROP_IMAGE_THUMBSUFFIX, "-thumb");
IMAGE_THUMB_WIDTH = conf.getInt(PROP_IMAGE_THUMBWIDTH, 150);
IMAGE_THUMB_HEIGHT = conf.getInt(PROP_IMAGE_THUMBHEIGHT, 150);
GenericObjectPoolConfig cfg = new GenericObjectPoolConfig();
GenericObjectPoolConfig<TrackerServer> cfg = new GenericObjectPoolConfig<TrackerServer>();
cfg.setMaxIdle(conf.getInt(PROP_POOL_MAXIDLE, 10));
cfg.setMinIdle(conf.getInt(PROP_POOL_MINIDLE, 1));
cfg.setMaxTotal(conf.getInt(PROP_POOL_MAXTOTAL, 20));

View File

@ -65,7 +65,6 @@
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${slf4j-api.version}</version>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>

View File

@ -63,7 +63,6 @@
<dependency>
<groupId>org.nutz</groupId>
<artifactId>nutzboot-starter-redis</artifactId>
<version>${nutzboot.version}</version>
</dependency>
</dependencies>
</project>

View File

@ -78,7 +78,6 @@
<dependency>
<groupId>org.nutz</groupId>
<artifactId>nutzboot-starter-redis</artifactId>
<version>${nutzboot.version}</version>
</dependency>
</dependencies>
</project>

View File

@ -62,7 +62,6 @@
<dependency>
<groupId>com.ibeetl</groupId>
<artifactId>beetl</artifactId>
<version>${beetl.version}</version>
</dependency>
</dependencies>
</project>