1、注释优化

Former-commit-id: b84a385ecf97824a9dda44194db8f663ee0811f6
master
wangbing 4 years ago
parent f57760213a
commit 1fd3db5498

@ -169,13 +169,7 @@ public class GlobalController implements ErrorController {
{//查询screen
String[] split = action.split("/");
StringBuilder sb = new StringBuilder("");
sb.append("screen");
for (int i = 0; i < split.length; i++) {
sb.append(File.separator);
sb.append(split[i]);
}
layout = sb.toString();
layout = "screen" + File.separator + String.join(File.separator, split);
View view = viewResolver.resolveViewName(layout, locale);
if (view == null) {
response.sendError(HttpServletResponse.SC_NOT_FOUND,"");

@ -5,10 +5,11 @@ import org.apache.poi.ss.usermodel.IndexedColors;
import org.apache.poi.ss.usermodel.Workbook;
/**
* Created on 2015/1/29.
*
*
* @author
* @since 2.0.0
* @author wangbing
* @version 0.0.1
* @since 2017-01-01
*/
public class BaseCellStyle {
/**

@ -4,10 +4,11 @@ import org.apache.poi.ss.usermodel.Font;
import org.apache.poi.ss.usermodel.Workbook;
/**
* Created on 2015/1/29.
*
*
* @author
* @since 2.0.0
* @author wangbing
* @version 0.0.1
* @since 2017-01-01
*/
public class BaseFont {
/**

@ -4,6 +4,13 @@ import org.apache.poi.hssf.util.HSSFColor;
import org.apache.poi.ss.usermodel.CellStyle;
import org.apache.poi.ss.usermodel.Workbook;
/**
*
*
* @author wangbing
* @version 0.0.1
* @since 2017-01-01
*/
public class DataCellStyle extends BaseCellStyle {
public DataCellStyle(Workbook workbook, short align, boolean error) {

@ -4,6 +4,13 @@ import org.apache.poi.hssf.util.HSSFColor;
import org.apache.poi.ss.usermodel.CellStyle;
import org.apache.poi.ss.usermodel.Workbook;
/**
*
*
* @author wangbing
* @version 0.0.1
* @since 2017-01-01
*/
public class ErrorCellStyle extends BaseCellStyle {
public ErrorCellStyle(Workbook workbook) {

@ -4,6 +4,13 @@ import org.apache.poi.hssf.util.HSSFColor;
import org.apache.poi.ss.usermodel.CellStyle;
import org.apache.poi.ss.usermodel.Workbook;
/**
*
*
* @author wangbing
* @version 0.0.1
* @since 2017-01-01
*/
public class HeadCellStyle extends BaseCellStyle {
public HeadCellStyle(Workbook workbook) {
super(workbook);

@ -4,11 +4,11 @@ import org.apache.poi.hssf.util.HSSFColor;
import org.apache.poi.ss.usermodel.Workbook;
/**
* .
* Created on 2015/1/29.
*
*
* @author
* @since 2.0.0
* @author wangbing
* @version 0.0.1
* @since 2017-01-01
*/
public class NormalFont extends BaseFont {
public NormalFont(Workbook workbook) {

@ -4,15 +4,15 @@ import org.apache.poi.hssf.util.HSSFColor;
import org.apache.poi.ss.usermodel.Workbook;
/**
* .
* Created on 2015/1/29.
*
*
* @author
* @since 2.0.0
* @author wangbing
* @version 0.0.1
* @since 2017-01-01
*/
public class RedFont extends BaseFont {
public RedFont(Workbook workbook) {
super(workbook);
font.setColor(HSSFColor.RED.index); //字体颜色-黑色
font.setColor(HSSFColor.RED.index);
}
}

@ -4,6 +4,13 @@ import org.apache.poi.hssf.util.HSSFColor;
import org.apache.poi.ss.usermodel.CellStyle;
import org.apache.poi.ss.usermodel.Workbook;
/**
*
*
* @author wangbing
* @version 0.0.1
* @since 2017-01-01
*/
public class SuccessCellStyle extends BaseCellStyle {
public SuccessCellStyle(Workbook workbook) {

@ -92,6 +92,9 @@
<li>
<el-tag>SpringBoot v2.1.2.RELEASE</el-tag>
</li>
<li>
<el-tag>Ehcache v-2.6.11</el-tag> 缓存框架
</li>
<li>
<el-tag>Freemarker v2.1.2.RELEASE</el-tag>
Html模板引擎
@ -108,6 +111,10 @@
<el-tag>logback v1.2.3</el-tag>
日志框架
</li>
<li>
<el-tag>poi-ooxml v3.8</el-tag>
Excel处理框架导入导出数据
</li>
<li>
<el-tag>jQuery v3.2.1</el-tag>
前端JavaScript框架保留打包进base.min.js但请尽量勿使用jQuery直接操作Dom
@ -141,20 +148,13 @@
<el-divider></el-divider>
<p>this.$ajax.login({}).then(function (response) {</p>
<p style="text-indent: 2em;">if (response.errors.length > 0) {</p>
<p style="text-indent: 4em;">nav.e(response.errors[0].message);</p>
<p style="text-indent: 2em;">} else {</p>
<p style="text-indent: 4em;">nav.i("Ajax调用成功!");</p>
<p style="text-indent: 2em;">}</p>
<p>})</p>
<pre>new Ajax("system", "user").find({}, function (response) {</pre>
<pre> if (response.errors.length > 0) {</pre>
<pre> nav.e(response.errors[0].message);</pre>
<pre> } else {</pre>
<pre> nav.i("Ajax调用成功!");</pre>
<pre> }</pre>
<pre>}.bind(this))</pre>
</el-card>
<el-card class="card" style="width: 600px;margin: 20px">
@ -173,23 +173,15 @@
<el-divider></el-divider>
<p>this.$ajax.upload(req.file).then(function (response) {</p>
<p style="text-indent: 2em;">if (response.errors.length > 0) {</p>
<p style="text-indent: 4em;">req.onError();</p>
<p style="text-indent: 4em;">nav.e(response.errors[0].message);</p>
<p style="text-indent: 2em;">} else {</p>
<p style="text-indent: 4em;">req.onSuccess();</p>
<p style="text-indent: 4em;">nav.i("文件上传成功!");</p>
<p style="text-indent: 2em;">}</p>
<p>})</p>
<pre>new Ajax("system","file","upload").post(req.file,function (response) {</pre>
<pre> if (response.errors.length > 0) {</pre>
<pre> req.onError();</pre>
<pre> nav.e(response.errors[0].message);</pre>
<pre> } else {</pre>
<pre> req.onSuccess();</pre>
<pre> nav.i("文件上传成功!");</pre>
<pre> }</pre>
<pre>}.bind(this))</pre>
</el-card>
</el-tab-pane>
@ -1054,7 +1046,7 @@
}
},
handleUpload: function (req) {
this.$ajax.upload(req.file).then(function (response) {
new Ajax("system","file","upload").post(req.file,function (response) {
if (response.errors.length > 0) {
req.onError();
nav.e(response.errors[0].message);

Loading…
Cancel
Save

Powered by TurnKey Linux.