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
JSH ERP
Commits
2222507f
"jetbrains:/idea/checkout/git" did not exist on "9d3aca598be7649f51aebcd3d80f05cb201bd7db"
Commit
2222507f
authored
Feb 15, 2017
by
季圣华
Browse files
升级代码结构,采用Maven来管理jar包(12)
parent
125b6f25
Changes
55
Hide whitespace changes
Inline
Side-by-side
src/main/resources/struts2/depotHead-struts.xml
0 → 100644
View file @
2222507f
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.1.7//EN"
"http://struts.apache.org/dtds/struts-2.1.7.dtd">
<struts>
<package
name=
"depotHead"
namespace=
"/depotHead"
extends=
"json-default"
>
<action
name=
"*"
class=
"depotHeadAction"
method=
"{1}"
>
<result
type=
"json"
/>
</action>
</package>
</struts>
\ No newline at end of file
src/main/resources/struts2/depotItem-struts.xml
0 → 100644
View file @
2222507f
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.1.7//EN"
"http://struts.apache.org/dtds/struts-2.1.7.dtd">
<struts>
<package
name=
"depotItem"
namespace=
"/depotItem"
extends=
"json-default"
>
<action
name=
"*"
class=
"depotItemAction"
method=
"{1}"
>
<result
type=
"json"
/>
</action>
<!--导出为excel表格 -->
<action
name=
"exportExcel"
class=
"depotItemAction"
method=
"exportExcel"
>
<result
name=
"excel"
type=
"stream"
>
<param
name=
"contentType"
>
application/vnd.ms-excel
</param>
<param
name=
"inputName"
>
excelStream
</param>
<param
name=
"contentDisposition"
>
attachment;filename="${fileName}"
</param>
<param
name=
"bufferSize"
>
1024
</param>
</result>
</action>
</package>
</struts>
\ No newline at end of file
src/main/resources/struts2/functions-struts.xml
0 → 100644
View file @
2222507f
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.1.7//EN"
"http://struts.apache.org/dtds/struts-2.1.7.dtd">
<struts>
<package
name=
"functions"
namespace=
"/functions"
extends=
"json-default"
>
<action
name=
"*"
class=
"functionsAction"
method=
"{1}"
>
<result
type=
"json"
/>
</action>
</package>
</struts>
\ No newline at end of file
src/main/resources/struts2/inOutItem-struts.xml
0 → 100644
View file @
2222507f
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.1.7//EN"
"http://struts.apache.org/dtds/struts-2.1.7.dtd">
<struts>
<package
name=
"inOutItem"
namespace=
"/inOutItem"
extends=
"json-default"
>
<action
name=
"*"
class=
"inOutItemAction"
method=
"{1}"
>
<result
type=
"json"
/>
</action>
</package>
</struts>
src/main/resources/struts2/log-struts.xml
0 → 100644
View file @
2222507f
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.1.7//EN"
"http://struts.apache.org/dtds/struts-2.1.7.dtd">
<struts>
<package
name=
"log"
namespace=
"/log"
extends=
"json-default"
>
<action
name=
"*"
class=
"logAction"
method=
"{1}"
>
<result
type=
"json"
/>
</action>
</package>
</struts>
\ No newline at end of file
src/main/resources/struts2/material-struts.xml
0 → 100644
View file @
2222507f
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.1.7//EN"
"http://struts.apache.org/dtds/struts-2.1.7.dtd">
<struts>
<package
name=
"material"
namespace=
"/material"
extends=
"json-default"
>
<action
name=
"*"
class=
"materialAction"
method=
"{1}"
>
<result
type=
"json"
/>
</action>
</package>
</struts>
\ No newline at end of file
src/main/resources/struts2/materialCategory-struts.xml
0 → 100644
View file @
2222507f
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.1.7//EN"
"http://struts.apache.org/dtds/struts-2.1.7.dtd">
<struts>
<package
name=
"materialCategory"
namespace=
"/materialCategory"
extends=
"json-default"
>
<action
name=
"*"
class=
"materialCategoryAction"
method=
"{1}"
>
<result
type=
"json"
/>
</action>
</package>
</struts>
\ No newline at end of file
src/main/resources/struts2/person-struts.xml
0 → 100644
View file @
2222507f
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.1.7//EN"
"http://struts.apache.org/dtds/struts-2.1.7.dtd">
<struts>
<package
name=
"person"
namespace=
"/person"
extends=
"json-default"
>
<action
name=
"*"
class=
"personAction"
method=
"{1}"
>
<result
type=
"json"
/>
</action>
</package>
</struts>
\ No newline at end of file
src/main/resources/struts2/report-struts.xml
0 → 100644
View file @
2222507f
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.1.7//EN"
"http://struts.apache.org/dtds/struts-2.1.7.dtd">
<struts>
<package
name=
"report"
namespace=
"/report"
extends=
"json-default"
>
<action
name=
"*"
class=
"reportAction"
method=
"{1}"
>
<result
type=
"json"
/>
</action>
</package>
</struts>
\ No newline at end of file
src/main/resources/struts2/role-struts.xml
0 → 100644
View file @
2222507f
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.1.7//EN"
"http://struts.apache.org/dtds/struts-2.1.7.dtd">
<struts>
<package
name=
"role"
namespace=
"/role"
extends=
"json-default"
>
<action
name=
"*"
class=
"roleAction"
method=
"{1}"
>
<result
type=
"json"
/>
</action>
</package>
</struts>
\ No newline at end of file
src/main/resources/struts2/struts.properties
0 → 100644
View file @
2222507f
# struts.properties
#struts.custom.i18n.resources=messages
src/main/resources/struts2/struts.xml
0 → 100644
View file @
2222507f
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.1.7//EN"
"http://struts.apache.org/dtds/struts-2.1.7.dtd">
<struts>
<constant
name=
"struts.i18n.encoding"
value=
"UTF-8"
/>
<constant
name=
"struts.action.extension"
value=
"action"
/>
<constant
name=
"struts.serve.static.browserCache"
value=
"false"
/>
<constant
name=
"struts.configuration.xml.reload"
value=
"true"
/>
<constant
name=
"struts.multipart.saveDir"
value=
"/temp"
/>
<constant
name=
"struts.multipart.maxSize"
value=
"3048576000"
/>
<constant
name=
"struts.i18n.reload"
value=
"true"
/>
<!-- 指定struts2应用处于开发阶段 -->
<constant
name=
"struts.devMode"
value=
"true"
/>
<constant
name=
"struts.ui.theme"
value=
"simple"
/>
<constant
name=
"struts.objectFactory"
value=
"spring"
/>
<!-- struts2框架按照如下顺序加载常量文件struts-default.xml、struts-plugin.xml、struts.xml、struts.properties、web.xml -->
<include
file=
"struts-default.xml"
></include>
<include
file=
"struts-plugin.xml"
></include>
<!-- 包含文件 -->
<include
file=
"struts2/*-struts.xml"
></include>
<!--
<constant name="struts.custom.i18n.resources" value="Performance" />
-->
<!--定义全局Result -->
<package
name=
"default"
namespace=
"/"
extends=
"struts-default"
>
<global-results>
<result
name=
"login"
>
/pages/common/admin.jsp
</result>
</global-results>
<action
name=
"*"
>
<result>
/pages/common/{1}.jsp
</result>
</action>
<action
name=
"login"
>
<result>
/pages/common/admin.jsp
</result>
</action>
</package>
</struts>
\ No newline at end of file
src/main/resources/struts2/supplier-struts.xml
0 → 100644
View file @
2222507f
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.1.7//EN"
"http://struts.apache.org/dtds/struts-2.1.7.dtd">
<struts>
<package
name=
"supplier"
namespace=
"/supplier"
extends=
"json-default"
>
<action
name=
"*"
class=
"supplierAction"
method=
"{1}"
>
<result
type=
"json"
/>
</action>
</package>
</struts>
\ No newline at end of file
src/main/resources/struts2/user-struts.xml
0 → 100644
View file @
2222507f
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.1.7//EN"
"http://struts.apache.org/dtds/struts-2.1.7.dtd">
<struts>
<package
name=
"user"
namespace=
"/user"
extends=
"json-default"
>
<action
name=
"*"
class=
"userAction"
method=
"{1}"
>
<result
type=
"json"
/>
</action>
<!-- 退出登录 -->
<action
name=
"logout"
class=
"userAction"
method=
"logout"
>
<result
name=
"success"
>
/logout.jsp
</result>
</action>
<!--<action name="login" class="userAction" method="login">
<result name="login" type="chain">
<param name="namespace">/</param>
<param name="actionName">login</param>
</result>
<result type="json"/>
</action>
-->
</package>
</struts>
\ No newline at end of file
src/main/resources/struts2/userBusiness-struts.xml
0 → 100644
View file @
2222507f
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.1.7//EN"
"http://struts.apache.org/dtds/struts-2.1.7.dtd">
<struts>
<package
name=
"userBusiness"
namespace=
"/userBusiness"
extends=
"json-default"
>
<action
name=
"*"
class=
"userBusinessAction"
method=
"{1}"
>
<result
type=
"json"
/>
</action>
</package>
</struts>
\ No newline at end of file
Prev
1
2
3
Next
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