Skip to content

Commit

Permalink
修改buildController创建的包路径;
Browse files Browse the repository at this point in the history
修改buildResultMap生成的type为实体类的全路径。
  • Loading branch information
sproutcat committed Oct 31, 2016
1 parent b043510 commit c39bc42
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -879,7 +879,7 @@ protected void buildServiceImpl(String beanName, String serviceImplName, String
protected void buildController(String beanName, String controllerName) throws IOException {
File serviceFile = new File(PATH_CONTROLLER_IMPL, controllerName + ".java");
BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(serviceFile), "utf-8"));
bw.write("package " + config.getServiceImplPackage() + ";");
bw.write("package " + config.getControllerPackage() + ";");
bw.newLine();
bw.newLine();
bw.write("import org.springframework.stereotype.Controller;");
Expand Down Expand Up @@ -977,7 +977,7 @@ protected void buildResultMap(BufferedWriter bw, String beanName ,Map<String, Id
int size = columns.size();
bw.write("\t<!-- 通用查询结果列-->");
bw.newLine();
bw.write("\t<resultMap id=\"" + beanName + "ResultMap\" type=\"" + beanName + "\">");
bw.write("\t<resultMap id=\"" + beanName + "ResultMap\" type=\"" + config.getEntityPackage() + "." + beanName + "\">");
bw.newLine();

/*
Expand Down

0 comments on commit c39bc42

Please sign in to comment.