Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Springboot Plus
Commits
79018ec1
Commit
79018ec1
authored
Jun 24, 2019
by
xiandafu
Browse files
update 错误信息
parent
42466f7a
Changes
4
Show whitespace changes
Inline
Side-by-side
admin-core/src/main/java/com/ibeetl/admin/core/web/
Simulate
Controller.java
→
admin-core/src/main/java/com/ibeetl/admin/core/web/Controller
NotFound
.java
View file @
79018ec1
...
...
@@ -10,20 +10,20 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.stereotype.Controller
;
import
org.springframework.web.bind.annotation.RequestMapping
;
/**
*
模拟所有还未实现的视图,或者json,或者直接访问相应的html页面
*
没有找到匹配的Controller
* @author xiandafu
*
*/
@Controller
public
class
Simulate
Controller
{
public
class
Controller
NotFound
{
@Autowired
WebSimulate
webSimulate
;
Log
log
=
LogFactory
.
getLog
(
Simulate
Controller
.
class
);
Log
log
=
LogFactory
.
getLog
(
Controller
NotFound
.
class
);
@RequestMapping
(
"/**/*.do"
)
public
void
simluateWeb
(
HttpServletRequest
request
,
HttpServletResponse
response
)
{
public
void
error
(
HttpServletRequest
request
,
HttpServletResponse
response
)
{
response
.
setContentType
(
"text/html;charset=UTF-8"
);
log
.
info
(
"没有配置 url "
+
request
.
getRequestURI
()+
",
使用模拟MVC功能使用前后端分离
"
);
webSimulate
.
execute
(
request
,
response
);
log
.
info
(
"没有配置 url "
+
request
.
getRequestURI
()+
",
确认所访问Controller是否存在,是否被Spring Boot管理
"
);
throw
new
RuntimeException
(
"未找到Controller类处理此请求 "
+
request
.
getRequestURI
()
);
}
...
...
admin-core/src/main/resources/codeTemplate/java/service.java
View file @
79018ec1
package
${
package
};
import
${
basePackage
}.
dao
.
$
{
entity
.
name
}
Dao
;
import
${
basePackage
}.
entity
.
$
{
entity
.
name
};
import
com.ibeetl.admin.core.service.CoreBaseService
;
import
com.ibeetl.admin.core.util.PlatformException
;
import
org.beetl.sql.core.engine.PageQuery
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
java.util.List
;
{
basePackage
}.
dao
.
$
{
entity
.
name
}
Dao
;
import
${
basePackage
}.
entity
.
$
{
entity
.
name
};
/**
* ${entity.displayName} Service
...
...
@@ -13,7 +25,7 @@ import ${basePackage}.entity.${entity.name};
\
@Service
\
@Transactional
public
class
${
entity
.
name
}
Service
extends
BaseService
<
$
{
entity
.
name
}>{
public
class
${
entity
.
name
}
Service
extends
Core
BaseService
<
$
{
entity
.
name
}>{
\
@Autowired
private
$
{
entity
.
name
}
Dao
$
{
entity
.
code
}
Dao
;
...
...
admin-core/src/main/resources/codeTemplate/md/entity.md
View file @
79018ec1
...
...
@@ -7,8 +7,8 @@ queryByCondition
t.*
\@}
from ${entity.tableName} t
where
del_flag=0
\@//数据权限,该sql语句功能点
where
1=1
\@//数据权限,该sql语句功能点
,如果不考虑数据权限,可以删除此行
and #function("${entity.code}.query")#
@for(attr in entity.list){
@if(attr.showInQuery){
...
...
changelog.txt
View file @
79018ec1
3.
\ No newline at end of file
# 1.3.1
* 更改beetl版本到最新版本
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment