Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
武汉红喜
whatsmars
提交
75ae2ffa
W
whatsmars
项目概览
武汉红喜
/
whatsmars
通知
3
Star
0
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
W
whatsmars
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
75ae2ffa
编写于
1月 18, 2019
作者:
武汉红喜
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
optimise
上级
f952e0eb
变更
43
隐藏空白更改
内联
并排
Showing
43 changed file
with
233 addition
and
234 deletion
+233
-234
whatsmars-common/pom.xml
whatsmars-common/pom.xml
+2
-65
whatsmars-earth/pom.xml
whatsmars-earth/pom.xml
+1
-0
whatsmars-earth/whatsmars-earth-common/pom.xml
whatsmars-earth/whatsmars-earth-common/pom.xml
+107
-0
whatsmars-earth/whatsmars-earth-common/src/main/java/org/hongxi/whatsmars/earth/common/CommonConstants.java
...va/org/hongxi/whatsmars/earth/common/CommonConstants.java
+1
-1
whatsmars-earth/whatsmars-earth-common/src/main/java/org/hongxi/whatsmars/earth/common/ImageSizeEnum.java
...java/org/hongxi/whatsmars/earth/common/ImageSizeEnum.java
+1
-1
whatsmars-earth/whatsmars-earth-common/src/main/java/org/hongxi/whatsmars/earth/common/mongo/GridFSClient.java
...org/hongxi/whatsmars/earth/common/mongo/GridFSClient.java
+5
-5
whatsmars-earth/whatsmars-earth-common/src/main/java/org/hongxi/whatsmars/earth/common/mongo/MongoDBClient.java
...rg/hongxi/whatsmars/earth/common/mongo/MongoDBClient.java
+4
-4
whatsmars-earth/whatsmars-earth-common/src/main/java/org/hongxi/whatsmars/earth/common/mongo/object/MongoDBConfig.java
...xi/whatsmars/earth/common/mongo/object/MongoDBConfig.java
+1
-1
whatsmars-earth/whatsmars-earth-common/src/main/java/org/hongxi/whatsmars/earth/common/mongo/object/MongoDBCredential.java
...hatsmars/earth/common/mongo/object/MongoDBCredential.java
+1
-1
whatsmars-earth/whatsmars-earth-common/src/main/java/org/hongxi/whatsmars/earth/common/mongo/object/MongoDBDriver.java
...xi/whatsmars/earth/common/mongo/object/MongoDBDriver.java
+1
-1
whatsmars-earth/whatsmars-earth-common/src/main/java/org/hongxi/whatsmars/earth/common/mongo/object/ObjectIdCreator.java
.../whatsmars/earth/common/mongo/object/ObjectIdCreator.java
+1
-1
whatsmars-earth/whatsmars-earth-common/src/main/java/org/hongxi/whatsmars/earth/common/mongo/serializer/CustomDateDeserializer.java
...earth/common/mongo/serializer/CustomDateDeserializer.java
+1
-1
whatsmars-earth/whatsmars-earth-common/src/main/java/org/hongxi/whatsmars/earth/common/mongo/serializer/CustomDateSerializer.java
...s/earth/common/mongo/serializer/CustomDateSerializer.java
+1
-1
whatsmars-earth/whatsmars-earth-common/src/main/java/org/hongxi/whatsmars/earth/common/pojo/Result.java
...n/java/org/hongxi/whatsmars/earth/common/pojo/Result.java
+1
-1
whatsmars-earth/whatsmars-earth-common/src/main/java/org/hongxi/whatsmars/earth/common/pojo/ResultCode.java
...va/org/hongxi/whatsmars/earth/common/pojo/ResultCode.java
+1
-1
whatsmars-earth/whatsmars-earth-common/src/main/java/org/hongxi/whatsmars/earth/common/util/Authenticator.java
...org/hongxi/whatsmars/earth/common/util/Authenticator.java
+1
-1
whatsmars-earth/whatsmars-earth-common/src/main/java/org/hongxi/whatsmars/earth/common/util/DESUtils.java
...java/org/hongxi/whatsmars/earth/common/util/DESUtils.java
+62
-0
whatsmars-earth/whatsmars-earth-common/src/main/java/org/hongxi/whatsmars/earth/common/util/EmailUtils.java
...va/org/hongxi/whatsmars/earth/common/util/EmailUtils.java
+1
-1
whatsmars-earth/whatsmars-earth-common/src/main/java/org/hongxi/whatsmars/earth/common/util/IdCardUtils.java
...a/org/hongxi/whatsmars/earth/common/util/IdCardUtils.java
+1
-1
whatsmars-earth/whatsmars-earth-common/src/main/java/org/hongxi/whatsmars/earth/common/util/JSONConverterUtils.java
...ongxi/whatsmars/earth/common/util/JSONConverterUtils.java
+2
-2
whatsmars-earth/whatsmars-earth-common/src/main/java/org/hongxi/whatsmars/earth/common/util/MoneyFormatUtils.java
.../hongxi/whatsmars/earth/common/util/MoneyFormatUtils.java
+1
-1
whatsmars-earth/whatsmars-earth-common/src/main/java/org/hongxi/whatsmars/earth/common/util/NumberFormatUtils.java
...hongxi/whatsmars/earth/common/util/NumberFormatUtils.java
+1
-1
whatsmars-earth/whatsmars-earth-common/src/main/java/org/hongxi/whatsmars/earth/common/util/ResultHelper.java
.../org/hongxi/whatsmars/earth/common/util/ResultHelper.java
+3
-3
whatsmars-earth/whatsmars-earth-common/src/main/java/org/hongxi/whatsmars/earth/common/util/ValidateCodeUtils.java
...hongxi/whatsmars/earth/common/util/ValidateCodeUtils.java
+1
-1
whatsmars-earth/whatsmars-earth-common/src/main/java/org/hongxi/whatsmars/earth/common/util/ValidateUtils.java
...org/hongxi/whatsmars/earth/common/util/ValidateUtils.java
+1
-1
whatsmars-earth/whatsmars-earth-common/src/main/java/org/hongxi/whatsmars/earth/common/util/VelocityUtils.java
...org/hongxi/whatsmars/earth/common/util/VelocityUtils.java
+1
-1
whatsmars-earth/whatsmars-earth-service/pom.xml
whatsmars-earth/whatsmars-earth-service/pom.xml
+1
-1
whatsmars-earth/whatsmars-earth-service/src/main/java/org/hongxi/whatsmars/earth/service/AccountService.java
...va/org/hongxi/whatsmars/earth/service/AccountService.java
+2
-2
whatsmars-earth/whatsmars-earth-service/src/main/java/org/hongxi/whatsmars/earth/service/OrganizationService.java
...g/hongxi/whatsmars/earth/service/OrganizationService.java
+2
-2
whatsmars-earth/whatsmars-earth-service/src/main/java/org/hongxi/whatsmars/earth/service/impl/AccountServiceImpl.java
...ngxi/whatsmars/earth/service/impl/AccountServiceImpl.java
+1
-1
whatsmars-earth/whatsmars-earth-service/src/main/java/org/hongxi/whatsmars/earth/service/impl/OrganizationServiceImpl.java
...whatsmars/earth/service/impl/OrganizationServiceImpl.java
+2
-2
whatsmars-earth/whatsmars-earth-support-web/pom.xml
whatsmars-earth/whatsmars-earth-support-web/pom.xml
+0
-5
whatsmars-earth/whatsmars-earth-support-web/src/main/java/org/hongxi/whatsmars/earth/support/web/controller/FileController.java
...hatsmars/earth/support/web/controller/FileController.java
+5
-5
whatsmars-earth/whatsmars-earth-support-web/src/main/java/org/hongxi/whatsmars/earth/support/web/service/FileService.java
...ngxi/whatsmars/earth/support/web/service/FileService.java
+1
-2
whatsmars-earth/whatsmars-earth-support-web/src/main/java/org/hongxi/whatsmars/earth/support/web/service/impl/FileServiceImpl.java
...smars/earth/support/web/service/impl/FileServiceImpl.java
+5
-5
whatsmars-earth/whatsmars-earth-web/src/main/java/org/hongxi/whatsmars/earth/web/controller/BaseController.java
...hongxi/whatsmars/earth/web/controller/BaseController.java
+6
-6
whatsmars-earth/whatsmars-earth-web/src/main/java/org/hongxi/whatsmars/earth/web/controller/EarthController.java
...ongxi/whatsmars/earth/web/controller/EarthController.java
+1
-1
whatsmars-earth/whatsmars-earth-web/src/main/java/org/hongxi/whatsmars/earth/web/controller/MarsController.java
...hongxi/whatsmars/earth/web/controller/MarsController.java
+2
-2
whatsmars-earth/whatsmars-earth-web/src/main/java/org/hongxi/whatsmars/earth/web/controller/NewController.java
.../hongxi/whatsmars/earth/web/controller/NewController.java
+0
-50
whatsmars-earth/whatsmars-earth-web/src/main/java/org/hongxi/whatsmars/earth/web/converter/StringToDateConverter.java
.../whatsmars/earth/web/converter/StringToDateConverter.java
+0
-38
whatsmars-earth/whatsmars-earth-web/src/main/java/org/hongxi/whatsmars/earth/web/interceptor/LoginInterceptor.java
...gxi/whatsmars/earth/web/interceptor/LoginInterceptor.java
+1
-1
whatsmars-earth/whatsmars-earth-web/src/main/resources/spring-velocity.xml
...hatsmars-earth-web/src/main/resources/spring-velocity.xml
+0
-10
whatsmars-earth/whatsmars-earth-web/src/main/webapp/WEB-INF/velocity-tools.xml
...mars-earth-web/src/main/webapp/WEB-INF/velocity-tools.xml
+0
-4
未找到文件。
whatsmars-common/pom.xml
浏览文件 @
75ae2ffa
...
...
@@ -16,25 +16,6 @@
<description>
Utils公共模块
</description>
<dependencies>
<!-- 图片压缩工具 -->
<dependency>
<groupId>
org.imgscalr
</groupId>
<artifactId>
imgscalr-lib
</artifactId>
<version>
4.2
</version>
</dependency>
<dependency>
<groupId>
org.mongodb
</groupId>
<artifactId>
mongo-java-driver
</artifactId>
<optional>
true
</optional>
</dependency>
<dependency>
<groupId>
org.codehaus.jackson
</groupId>
<artifactId>
jackson-mapper-asl
</artifactId>
<version>
1.9.13
</version>
</dependency>
<dependency>
<groupId>
org.apache.httpcomponents
</groupId>
<artifactId>
httpclient
</artifactId>
...
...
@@ -44,18 +25,6 @@
<artifactId>
httpmime
</artifactId>
</dependency>
<dependency>
<groupId>
net.sf.json-lib
</groupId>
<artifactId>
json-lib
</artifactId>
<version>
${json-lib.version}
</version>
<classifier>
jdk15
</classifier>
</dependency>
<dependency>
<groupId>
net.sf.ezmorph
</groupId>
<artifactId>
ezmorph
</artifactId>
<version>
1.0.6
</version>
</dependency>
<dependency>
<groupId>
org.apache.commons
</groupId>
<artifactId>
commons-email
</artifactId>
...
...
@@ -68,41 +37,9 @@
</dependency>
<dependency>
<groupId>
com
.google.guava
</groupId>
<artifactId>
guava
</artifactId>
<groupId>
com
mons-lang
</groupId>
<artifactId>
commons-lang
</artifactId>
</dependency>
<dependency>
<groupId>
org.apache.velocity
</groupId>
<artifactId>
velocity
</artifactId>
</dependency>
<dependency>
<groupId>
com.itextpdf
</groupId>
<artifactId>
itextpdf
</artifactId>
<version>
5.5.6
</version>
</dependency>
<dependency>
<groupId>
com.itextpdf
</groupId>
<artifactId>
itext-asian
</artifactId>
<version>
5.2.0
</version>
</dependency>
<dependency>
<groupId>
com.itextpdf.tool
</groupId>
<artifactId>
xmlworker
</artifactId>
<version>
5.5.6
</version>
</dependency>
<dependency>
<groupId>
dom4j
</groupId>
<artifactId>
dom4j
</artifactId>
</dependency>
<dependency>
<groupId>
com.fasterxml.jackson.core
</groupId>
<artifactId>
jackson-databind
</artifactId>
</dependency>
</dependencies>
...
...
whatsmars-earth/pom.xml
浏览文件 @
75ae2ffa
...
...
@@ -22,6 +22,7 @@
<module>
whatsmars-earth-web
</module>
<module>
whatsmars-earth-support-web
</module>
<module>
whatsmars-earth-manager
</module>
<module>
whatsmars-earth-common
</module>
</modules>
<properties>
...
...
whatsmars-earth/whatsmars-earth-common/pom.xml
0 → 100644
浏览文件 @
75ae2ffa
<?xml version="1.0" encoding="UTF-8"?>
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<parent>
<artifactId>
whatsmars-earth
</artifactId>
<groupId>
org.hongxi
</groupId>
<version>
Rocket.S1
</version>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<artifactId>
whatsmars-earth-common
</artifactId>
<packaging>
jar
</packaging>
<name>
${project.artifactId}
</name>
<description>
Earth Utils 公共模块
</description>
<dependencies>
<!-- 图片压缩工具 -->
<dependency>
<groupId>
org.imgscalr
</groupId>
<artifactId>
imgscalr-lib
</artifactId>
<version>
4.2
</version>
</dependency>
<dependency>
<groupId>
org.mongodb
</groupId>
<artifactId>
mongo-java-driver
</artifactId>
</dependency>
<dependency>
<groupId>
org.codehaus.jackson
</groupId>
<artifactId>
jackson-mapper-asl
</artifactId>
<version>
1.9.13
</version>
</dependency>
<dependency>
<groupId>
org.apache.httpcomponents
</groupId>
<artifactId>
httpclient
</artifactId>
</dependency>
<dependency>
<groupId>
org.apache.httpcomponents
</groupId>
<artifactId>
httpmime
</artifactId>
</dependency>
<dependency>
<groupId>
net.sf.json-lib
</groupId>
<artifactId>
json-lib
</artifactId>
<version>
${json-lib.version}
</version>
<classifier>
jdk15
</classifier>
</dependency>
<dependency>
<groupId>
net.sf.ezmorph
</groupId>
<artifactId>
ezmorph
</artifactId>
<version>
1.0.6
</version>
</dependency>
<dependency>
<groupId>
org.apache.commons
</groupId>
<artifactId>
commons-email
</artifactId>
<version>
1.3.3
</version>
</dependency>
<dependency>
<groupId>
javax.mail
</groupId>
<artifactId>
mail
</artifactId>
<version>
1.4.7
</version>
</dependency>
<dependency>
<groupId>
com.google.guava
</groupId>
<artifactId>
guava
</artifactId>
</dependency>
<dependency>
<groupId>
org.apache.velocity
</groupId>
<artifactId>
velocity
</artifactId>
</dependency>
<dependency>
<groupId>
com.itextpdf
</groupId>
<artifactId>
itextpdf
</artifactId>
<version>
5.5.6
</version>
</dependency>
<dependency>
<groupId>
com.itextpdf
</groupId>
<artifactId>
itext-asian
</artifactId>
<version>
5.2.0
</version>
</dependency>
<dependency>
<groupId>
com.itextpdf.tool
</groupId>
<artifactId>
xmlworker
</artifactId>
<version>
5.5.6
</version>
</dependency>
<dependency>
<groupId>
dom4j
</groupId>
<artifactId>
dom4j
</artifactId>
</dependency>
<dependency>
<groupId>
com.fasterxml.jackson.core
</groupId>
<artifactId>
jackson-databind
</artifactId>
</dependency>
</dependencies>
</project>
\ No newline at end of file
whatsmars-
common/src/main/java/org/hongxi/whatsmars
/common/CommonConstants.java
→
whatsmars-
earth/whatsmars-earth-common/src/main/java/org/hongxi/whatsmars/earth
/common/CommonConstants.java
浏览文件 @
75ae2ffa
package
org.hongxi.whatsmars.common
;
package
org.hongxi.whatsmars.
earth.
common
;
/**
* Created by liuguanqing on 15/4/16.
...
...
whatsmars-
common/src/main/java/org/hongxi/whatsmars
/common/ImageSizeEnum.java
→
whatsmars-
earth/whatsmars-earth-common/src/main/java/org/hongxi/whatsmars/earth
/common/ImageSizeEnum.java
浏览文件 @
75ae2ffa
package
org.hongxi.whatsmars.common
;
package
org.hongxi.whatsmars.
earth.
common
;
/**
* Created by liuguanqing on 15/4/20.
...
...
whatsmars-
common/src/main/java/org/hongxi/whatsmars
/common/mongo/GridFSClient.java
→
whatsmars-
earth/whatsmars-earth-common/src/main/java/org/hongxi/whatsmars/earth
/common/mongo/GridFSClient.java
浏览文件 @
75ae2ffa
package
org.hongxi.whatsmars.common.mongo
;
package
org.hongxi.whatsmars.
earth.
common.mongo
;
import
org.hongxi.whatsmars.common.mongo.object.MongoDBConfig
;
import
org.hongxi.whatsmars.common.ImageSizeEnum
;
import
org.hongxi.whatsmars.common.mongo.object.MongoDBCredential
;
import
org.hongxi.whatsmars.common.mongo.object.MongoDBDriver
;
import
com.mongodb.BasicDBObject
;
import
com.mongodb.DBCursor
;
import
com.mongodb.DBObject
;
...
...
@@ -13,6 +9,10 @@ import com.mongodb.gridfs.GridFSInputFile;
import
org.apache.commons.codec.digest.DigestUtils
;
import
org.apache.commons.lang.ArrayUtils
;
import
org.apache.commons.lang.RandomStringUtils
;
import
org.hongxi.whatsmars.earth.common.ImageSizeEnum
;
import
org.hongxi.whatsmars.earth.common.mongo.object.MongoDBConfig
;
import
org.hongxi.whatsmars.earth.common.mongo.object.MongoDBCredential
;
import
org.hongxi.whatsmars.earth.common.mongo.object.MongoDBDriver
;
import
org.imgscalr.Scalr
;
import
javax.imageio.ImageIO
;
...
...
whatsmars-
common/src/main/java/org/hongxi/whatsmars
/common/mongo/MongoDBClient.java
→
whatsmars-
earth/whatsmars-earth-common/src/main/java/org/hongxi/whatsmars/earth
/common/mongo/MongoDBClient.java
浏览文件 @
75ae2ffa
package
org.hongxi.whatsmars.common.mongo
;
package
org.hongxi.whatsmars.
earth.
common.mongo
;
import
org.hongxi.whatsmars.common.mongo.object.MongoDBConfig
;
import
org.hongxi.whatsmars.common.mongo.object.MongoDBCredential
;
import
org.hongxi.whatsmars.common.mongo.object.MongoDBDriver
;
import
com.mongodb.client.ListCollectionsIterable
;
import
com.mongodb.client.MongoCollection
;
import
com.mongodb.client.MongoCursor
;
import
com.mongodb.client.MongoDatabase
;
import
org.bson.Document
;
import
org.hongxi.whatsmars.earth.common.mongo.object.MongoDBConfig
;
import
org.hongxi.whatsmars.earth.common.mongo.object.MongoDBCredential
;
import
org.hongxi.whatsmars.earth.common.mongo.object.MongoDBDriver
;
import
java.util.ArrayList
;
import
java.util.List
;
...
...
whatsmars-
common/src/main/java/org/hongxi/whatsmars
/common/mongo/object/MongoDBConfig.java
→
whatsmars-
earth/whatsmars-earth-common/src/main/java/org/hongxi/whatsmars/earth
/common/mongo/object/MongoDBConfig.java
浏览文件 @
75ae2ffa
package
org.hongxi.whatsmars.common.mongo.object
;
package
org.hongxi.whatsmars.
earth.
common.mongo.object
;
import
com.mongodb.MongoCredential
;
import
com.mongodb.ServerAddress
;
...
...
whatsmars-
common/src/main/java/org/hongxi/whatsmars
/common/mongo/object/MongoDBCredential.java
→
whatsmars-
earth/whatsmars-earth-common/src/main/java/org/hongxi/whatsmars/earth
/common/mongo/object/MongoDBCredential.java
浏览文件 @
75ae2ffa
package
org.hongxi.whatsmars.common.mongo.object
;
package
org.hongxi.whatsmars.
earth.
common.mongo.object
;
/**
* Author: qing
...
...
whatsmars-
common/src/main/java/org/hongxi/whatsmars
/common/mongo/object/MongoDBDriver.java
→
whatsmars-
earth/whatsmars-earth-common/src/main/java/org/hongxi/whatsmars/earth
/common/mongo/object/MongoDBDriver.java
浏览文件 @
75ae2ffa
package
org.hongxi.whatsmars.common.mongo.object
;
package
org.hongxi.whatsmars.
earth.
common.mongo.object
;
import
com.mongodb.DB
;
import
com.mongodb.Mongo
;
...
...
whatsmars-
common/src/main/java/org/hongxi/whatsmars
/common/mongo/object/ObjectIdCreator.java
→
whatsmars-
earth/whatsmars-earth-common/src/main/java/org/hongxi/whatsmars/earth
/common/mongo/object/ObjectIdCreator.java
浏览文件 @
75ae2ffa
package
org.hongxi.whatsmars.common.mongo.object
;
package
org.hongxi.whatsmars.
earth.
common.mongo.object
;
import
org.bson.types.ObjectId
;
...
...
whatsmars-
common/src/main/java/org/hongxi/whatsmars
/common/mongo/serializer/CustomDateDeserializer.java
→
whatsmars-
earth/whatsmars-earth-common/src/main/java/org/hongxi/whatsmars/earth
/common/mongo/serializer/CustomDateDeserializer.java
浏览文件 @
75ae2ffa
package
org.hongxi.whatsmars.common.mongo.serializer
;
package
org.hongxi.whatsmars.
earth.
common.mongo.serializer
;
import
org.apache.commons.lang.time.DateUtils
;
import
org.codehaus.jackson.JsonParser
;
...
...
whatsmars-
common/src/main/java/org/hongxi/whatsmars
/common/mongo/serializer/CustomDateSerializer.java
→
whatsmars-
earth/whatsmars-earth-common/src/main/java/org/hongxi/whatsmars/earth
/common/mongo/serializer/CustomDateSerializer.java
浏览文件 @
75ae2ffa
package
org.hongxi.whatsmars.common.mongo.serializer
;
package
org.hongxi.whatsmars.
earth.
common.mongo.serializer
;
import
org.apache.commons.lang.time.DateFormatUtils
;
import
org.codehaus.jackson.JsonGenerator
;
...
...
whatsmars-
common/src/main/java/org/hongxi/whatsmars
/common/pojo/Result.java
→
whatsmars-
earth/whatsmars-earth-common/src/main/java/org/hongxi/whatsmars/earth
/common/pojo/Result.java
浏览文件 @
75ae2ffa
package
org.hongxi.whatsmars.common.pojo
;
package
org.hongxi.whatsmars.
earth.
common.pojo
;
import
java.util.HashMap
;
import
java.util.Map
;
...
...
whatsmars-
common/src/main/java/org/hongxi/whatsmars
/common/pojo/ResultCode.java
→
whatsmars-
earth/whatsmars-earth-common/src/main/java/org/hongxi/whatsmars/earth
/common/pojo/ResultCode.java
浏览文件 @
75ae2ffa
package
org.hongxi.whatsmars.common.pojo
;
package
org.hongxi.whatsmars.
earth.
common.pojo
;
public
class
ResultCode
{
...
...
whatsmars-
common/src/main/java/org/hongxi/whatsmars
/common/util/Authenticator.java
→
whatsmars-
earth/whatsmars-earth-common/src/main/java/org/hongxi/whatsmars/earth
/common/util/Authenticator.java
浏览文件 @
75ae2ffa
package
org.hongxi.whatsmars.common.util
;
package
org.hongxi.whatsmars.
earth.
common.util
;
import
javax.mail.PasswordAuthentication
;
...
...
whatsmars-earth/whatsmars-earth-common/src/main/java/org/hongxi/whatsmars/earth/common/util/DESUtils.java
0 → 100644
浏览文件 @
75ae2ffa
package
org.hongxi.whatsmars.earth.common.util
;
import
org.apache.commons.codec.binary.Base64
;
import
javax.crypto.Cipher
;
import
javax.crypto.SecretKey
;
import
javax.crypto.SecretKeyFactory
;
import
javax.crypto.spec.DESKeySpec
;
import
java.security.SecureRandom
;
public
class
DESUtils
{
private
static
final
String
DES
=
"DES"
;
private
static
final
String
PADDING
=
"DES/ECB/PKCS5Padding"
;
private
static
final
String
DEFAULT_ENCODING
=
"utf-8"
;
public
final
static
String
encrypt
(
String
code
,
String
key
)
{
try
{
return
Base64
.
encodeBase64String
(
encrypt
(
code
.
getBytes
(
DEFAULT_ENCODING
),
key
.
getBytes
(
DEFAULT_ENCODING
)));
}
catch
(
Exception
e
)
{
//
}
return
null
;
}
public
static
byte
[]
encrypt
(
byte
[]
src
,
byte
[]
key
)
throws
Exception
{
SecureRandom
sr
=
new
SecureRandom
();
DESKeySpec
dks
=
new
DESKeySpec
(
key
);
SecretKeyFactory
keyFactory
=
SecretKeyFactory
.
getInstance
(
DES
);
SecretKey
securekey
=
keyFactory
.
generateSecret
(
dks
);
Cipher
cipher
=
Cipher
.
getInstance
(
PADDING
);
cipher
.
init
(
Cipher
.
ENCRYPT_MODE
,
securekey
,
sr
);
return
cipher
.
doFinal
(
src
);
}
public
final
static
String
decrypt
(
String
data
,
String
key
)
{
try
{
//base64,default-charset is UTF-8
return
new
String
(
decrypt
(
Base64
.
decodeBase64
(
data
),
key
.
getBytes
(
DEFAULT_ENCODING
)),
DEFAULT_ENCODING
);
}
catch
(
Exception
e
)
{
//
}
return
null
;
}
public
static
byte
[]
decrypt
(
byte
[]
src
,
byte
[]
key
)
throws
Exception
{
SecureRandom
sr
=
new
SecureRandom
();
DESKeySpec
dks
=
new
DESKeySpec
(
key
);
SecretKeyFactory
keyFactory
=
SecretKeyFactory
.
getInstance
(
DES
);
SecretKey
securekey
=
keyFactory
.
generateSecret
(
dks
);
Cipher
cipher
=
Cipher
.
getInstance
(
PADDING
);
cipher
.
init
(
Cipher
.
DECRYPT_MODE
,
securekey
,
sr
);
return
cipher
.
doFinal
(
src
);
}
}
whatsmars-
common/src/main/java/org/hongxi/whatsmars
/common/util/EmailUtils.java
→
whatsmars-
earth/whatsmars-earth-common/src/main/java/org/hongxi/whatsmars/earth
/common/util/EmailUtils.java
浏览文件 @
75ae2ffa
package
org.hongxi.whatsmars.common.util
;
package
org.hongxi.whatsmars.
earth.
common.util
;
import
java.util.HashMap
;
import
java.util.Map
;
...
...
whatsmars-
common/src/main/java/org/hongxi/whatsmars
/common/util/IdCardUtils.java
→
whatsmars-
earth/whatsmars-earth-common/src/main/java/org/hongxi/whatsmars/earth
/common/util/IdCardUtils.java
浏览文件 @
75ae2ffa
package
org.hongxi.whatsmars.common.util
;
package
org.hongxi.whatsmars.
earth.
common.util
;
import
java.text.ParseException
;
import
java.text.SimpleDateFormat
;
...
...
whatsmars-
common/src/main/java/org/hongxi/whatsmars
/common/util/JSONConverterUtils.java
→
whatsmars-
earth/whatsmars-earth-common/src/main/java/org/hongxi/whatsmars/earth
/common/util/JSONConverterUtils.java
浏览文件 @
75ae2ffa
package
org.hongxi.whatsmars.common.util
;
package
org.hongxi.whatsmars.
earth.
common.util
;
import
org.hongxi.whatsmars.common.pojo.Result
;
import
org.codehaus.jackson.map.ObjectMapper
;
import
org.hongxi.whatsmars.earth.common.pojo.Result
;
/**
* qing
...
...
whatsmars-
common/src/main/java/org/hongxi/whatsmars
/common/util/MoneyFormatUtils.java
→
whatsmars-
earth/whatsmars-earth-common/src/main/java/org/hongxi/whatsmars/earth
/common/util/MoneyFormatUtils.java
浏览文件 @
75ae2ffa
package
org.hongxi.whatsmars.common.util
;
package
org.hongxi.whatsmars.
earth.
common.util
;
import
java.text.NumberFormat
;
import
java.util.HashMap
;
...
...
whatsmars-
common/src/main/java/org/hongxi/whatsmars
/common/util/NumberFormatUtils.java
→
whatsmars-
earth/whatsmars-earth-common/src/main/java/org/hongxi/whatsmars/earth
/common/util/NumberFormatUtils.java
浏览文件 @
75ae2ffa
package
org.hongxi.whatsmars.common.util
;
package
org.hongxi.whatsmars.
earth.
common.util
;
import
java.math.BigDecimal
;
...
...
whatsmars-
common/src/main/java/org/hongxi/whatsmars
/common/util/ResultHelper.java
→
whatsmars-
earth/whatsmars-earth-common/src/main/java/org/hongxi/whatsmars/earth
/common/util/ResultHelper.java
浏览文件 @
75ae2ffa
package
org.hongxi.whatsmars.common.util
;
package
org.hongxi.whatsmars.
earth.
common.util
;
import
org.hongxi.whatsmars.common.pojo.Result
;
import
org.hongxi.whatsmars.common.pojo.ResultCode
;
import
net.sf.json.JSONObject
;
import
org.hongxi.whatsmars.earth.common.pojo.Result
;
import
org.hongxi.whatsmars.earth.common.pojo.ResultCode
;
import
java.util.Map
;
...
...
whatsmars-
common/src/main/java/org/hongxi/whatsmars
/common/util/ValidateCodeUtils.java
→
whatsmars-
earth/whatsmars-earth-common/src/main/java/org/hongxi/whatsmars/earth
/common/util/ValidateCodeUtils.java
浏览文件 @
75ae2ffa
package
org.hongxi.whatsmars.common.util
;
package
org.hongxi.whatsmars.
earth.
common.util
;
import
java.awt.*
;
...
...
whatsmars-
common/src/main/java/org/hongxi/whatsmars
/common/util/ValidateUtils.java
→
whatsmars-
earth/whatsmars-earth-common/src/main/java/org/hongxi/whatsmars/earth
/common/util/ValidateUtils.java
浏览文件 @
75ae2ffa
package
org.hongxi.whatsmars.common.util
;
package
org.hongxi.whatsmars.
earth.
common.util
;
import
org.apache.commons.lang.StringUtils
;
...
...
whatsmars-
common/src/main/java/org/hongxi/whatsmars
/common/util/VelocityUtils.java
→
whatsmars-
earth/whatsmars-earth-common/src/main/java/org/hongxi/whatsmars/earth
/common/util/VelocityUtils.java
浏览文件 @
75ae2ffa
package
org.hongxi.whatsmars.common.util
;
package
org.hongxi.whatsmars.
earth.
common.util
;
import
org.apache.velocity.Template
;
import
org.apache.velocity.VelocityContext
;
...
...
whatsmars-earth/whatsmars-earth-service/pom.xml
浏览文件 @
75ae2ffa
...
...
@@ -18,7 +18,7 @@
<dependencies>
<dependency>
<groupId>
org.hongxi
</groupId>
<artifactId>
whatsmars-common
</artifactId>
<artifactId>
whatsmars-
earth-
common
</artifactId>
<version>
Rocket.S1
</version>
</dependency>
<dependency>
...
...
whatsmars-earth/whatsmars-earth-service/src/main/java/org/hongxi/whatsmars/earth/service/AccountService.java
浏览文件 @
75ae2ffa
package
org.hongxi.whatsmars.earth.service
;
import
org.hongxi.whatsmars.common.pojo.Result
;
import
org.hongxi.whatsmars.
earth.
common.pojo.Result
;
/**
* Created by shenhongxi on 2016/4/1.
*/
public
interface
AccountService
{
public
Result
hello
(
String
name
);
Result
hello
(
String
name
);
}
whatsmars-earth/whatsmars-earth-service/src/main/java/org/hongxi/whatsmars/earth/service/OrganizationService.java
浏览文件 @
75ae2ffa
package
org.hongxi.whatsmars.earth.service
;
import
org.hongxi.whatsmars.common.pojo.Result
;
import
org.hongxi.whatsmars.
earth.
common.pojo.Result
;
import
org.hongxi.whatsmars.earth.domain.query.OrganizationQuery
;
/**
...
...
@@ -8,6 +8,6 @@ import org.hongxi.whatsmars.earth.domain.query.OrganizationQuery;
*/
public
interface
OrganizationService
{
public
Result
list
(
OrganizationQuery
query
);
Result
list
(
OrganizationQuery
query
);
}
whatsmars-earth/whatsmars-earth-service/src/main/java/org/hongxi/whatsmars/earth/service/impl/AccountServiceImpl.java
浏览文件 @
75ae2ffa
package
org.hongxi.whatsmars.earth.service.impl
;
import
org.hongxi.whatsmars.common.pojo.Result
;
import
org.hongxi.whatsmars.
earth.
common.pojo.Result
;
import
org.hongxi.whatsmars.earth.dao.AccountDao
;
import
org.hongxi.whatsmars.earth.service.AccountService
;
import
org.springframework.stereotype.Service
;
...
...
whatsmars-earth/whatsmars-earth-service/src/main/java/org/hongxi/whatsmars/earth/service/impl/OrganizationServiceImpl.java
浏览文件 @
75ae2ffa
package
org.hongxi.whatsmars.earth.service.impl
;
import
org.hongxi.whatsmars.common.pojo.Result
;
import
org.hongxi.whatsmars.common.pojo.ResultCode
;
import
org.hongxi.whatsmars.
earth.
common.pojo.Result
;
import
org.hongxi.whatsmars.
earth.
common.pojo.ResultCode
;
import
org.hongxi.whatsmars.earth.dao.OrganizationDao
;
import
org.hongxi.whatsmars.earth.service.OrganizationService
;
import
org.hongxi.whatsmars.earth.domain.pojo.Organization
;
...
...
whatsmars-earth/whatsmars-earth-support-web/pom.xml
浏览文件 @
75ae2ffa
...
...
@@ -93,11 +93,6 @@
<artifactId>
aspectjtools
</artifactId>
</dependency>
<dependency>
<groupId>
org.mongodb
</groupId>
<artifactId>
mongo-java-driver
</artifactId>
</dependency>
</dependencies>
<build>
...
...
whatsmars-earth/whatsmars-earth-support-web/src/main/java/org/hongxi/whatsmars/earth/support/web/controller/FileController.java
浏览文件 @
75ae2ffa
package
org.hongxi.whatsmars.earth.support.web.controller
;
import
org.hongxi.whatsmars.common.CommonConstants
;
import
org.hongxi.whatsmars.common.pojo.Result
;
import
org.hongxi.whatsmars.common.pojo.ResultCode
;
import
org.hongxi.whatsmars.common.util.DESUtils
;
import
org.hongxi.whatsmars.common.util.ResultHelper
;
import
org.hongxi.whatsmars.
earth.
common.CommonConstants
;
import
org.hongxi.whatsmars.
earth.
common.pojo.Result
;
import
org.hongxi.whatsmars.
earth.
common.pojo.ResultCode
;
import
org.hongxi.whatsmars.
earth.
common.util.DESUtils
;
import
org.hongxi.whatsmars.
earth.
common.util.ResultHelper
;
import
org.hongxi.whatsmars.earth.support.web.service.FileService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Controller
;
...
...
whatsmars-earth/whatsmars-earth-support-web/src/main/java/org/hongxi/whatsmars/earth/support/web/service/FileService.java
浏览文件 @
75ae2ffa
package
org.hongxi.whatsmars.earth.support.web.service
;
import
org.hongxi.whatsmars.common.pojo.Result
;
import
org.hongxi.whatsmars.earth.common.pojo.Result
;
import
java.io.ByteArrayInputStream
;
import
java.io.InputStream
;
...
...
whatsmars-earth/whatsmars-earth-support-web/src/main/java/org/hongxi/whatsmars/earth/support/web/service/impl/FileServiceImpl.java
浏览文件 @
75ae2ffa
package
org.hongxi.whatsmars.earth.support.web.service.impl
;
import
org.hongxi.whatsmars.common.ImageSizeEnum
;
import
org.hongxi.whatsmars.common.mongo.GridFSClient
;
import
org.hongxi.whatsmars.common.pojo.Result
;
import
org.hongxi.whatsmars.common.pojo.ResultCode
;
import
org.hongxi.whatsmars.
earth.
common.ImageSizeEnum
;
import
org.hongxi.whatsmars.
earth.
common.mongo.GridFSClient
;
import
org.hongxi.whatsmars.
earth.
common.pojo.Result
;
import
org.hongxi.whatsmars.
earth.
common.pojo.ResultCode
;
import
org.hongxi.whatsmars.earth.support.web.service.FileService
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
...
...
@@ -26,7 +26,7 @@ public class FileServiceImpl implements FileService {
private
GridFSClient
gridFSClient
;
@Override
public
Result
uploadFile
(
InputStream
inputStream
,
String
format
,
String
uid
)
{
public
Result
uploadFile
(
InputStream
inputStream
,
String
format
,
String
uid
)
{
Result
result
=
new
Result
();
try
{
String
filename
=
gridFSClient
.
saveFile
(
inputStream
,
format
,
uid
);
...
...
whatsmars-earth/whatsmars-earth-web/src/main/java/org/hongxi/whatsmars/earth/web/controller/BaseController.java
浏览文件 @
75ae2ffa
package
org.hongxi.whatsmars.earth.web.controller
;
import
org.hongxi.whatsmars.common.util.DESUtils
;
import
org.hongxi.whatsmars.
earth.
common.util.DESUtils
;
import
org.hongxi.whatsmars.earth.domain.constants.Constants
;
import
org.hongxi.whatsmars.earth.domain.misc.SystemConfig
;
import
org.apache.commons.lang.RandomStringUtils
;
...
...
@@ -25,7 +25,7 @@ public class BaseController {
* @param response 生成token,path为当前页面的路径,比如:/teacher
* @return
*/
p
ublic
String
createToken
(
HttpServletRequest
request
,
HttpServletResponse
response
)
{
p
rotected
String
createToken
(
HttpServletRequest
request
,
HttpServletResponse
response
)
{
String
token
=
RandomStringUtils
.
random
(
32
,
true
,
true
);
Cookie
cookie
=
new
Cookie
(
TOKEN_KEY
,
DESUtils
.
encrypt
(
token
,
Constants
.
HTTP_ENCRYPT_KEY
));
...
...
@@ -42,7 +42,7 @@ public class BaseController {
* @param response
* @return
*/
p
ublic
void
removeToken
(
HttpServletRequest
request
,
HttpServletResponse
response
)
{
p
rotected
void
removeToken
(
HttpServletRequest
request
,
HttpServletResponse
response
)
{
Cookie
cookie
=
new
Cookie
(
TOKEN_KEY
,
null
);
cookie
.
setDomain
(
systemConfig
.
getCookieDomain
());
cookie
.
setMaxAge
(
0
);
//立即过期
...
...
@@ -55,7 +55,7 @@ public class BaseController {
* @param request
* @return
*/
p
ublic
String
getToken
(
HttpServletRequest
request
)
{
p
rotected
String
getToken
(
HttpServletRequest
request
)
{
Cookie
[]
cookies
=
request
.
getCookies
();
if
(
cookies
==
null
)
{
return
null
;
...
...
@@ -75,7 +75,7 @@ public class BaseController {
* @param request
* @return
*/
p
ublic
String
getClientIP
(
HttpServletRequest
request
)
{
p
rotected
String
getClientIP
(
HttpServletRequest
request
)
{
String
ip
=
request
.
getHeader
(
"x-forwarded-for"
);
if
(
ip
==
null
||
ip
.
length
()
==
0
||
"unknown"
.
equalsIgnoreCase
(
ip
))
{
ip
=
request
.
getHeader
(
"Proxy-Client-IP"
);
...
...
@@ -95,7 +95,7 @@ public class BaseController {
* @param request
* @return
*/
p
ublic
String
getCurrentValidateCode
(
HttpServletRequest
request
)
{
p
rotected
String
getCurrentValidateCode
(
HttpServletRequest
request
)
{
Cookie
[]
cookies
=
request
.
getCookies
();
if
(
cookies
==
null
)
{
return
null
;
...
...
whatsmars-earth/whatsmars-earth-web/src/main/java/org/hongxi/whatsmars/earth/web/controller/EarthController.java
浏览文件 @
75ae2ffa
package
org.hongxi.whatsmars.earth.web.controller
;
import
org.hongxi.whatsmars.earth.common.pojo.Result
;
import
org.hongxi.whatsmars.earth.domain.enums.OrganizationLevelEnum
;
import
org.hongxi.whatsmars.earth.domain.enums.OrganizationStatusEnum
;
import
org.hongxi.whatsmars.earth.domain.enums.UserTypeEnum
;
import
org.hongxi.whatsmars.earth.service.OrganizationService
;
import
org.hongxi.whatsmars.common.pojo.Result
;
import
org.hongxi.whatsmars.earth.domain.permission.Permission
;
import
org.hongxi.whatsmars.earth.domain.query.OrganizationQuery
;
import
org.apache.commons.lang.StringUtils
;
...
...
whatsmars-earth/whatsmars-earth-web/src/main/java/org/hongxi/whatsmars/earth/web/controller/MarsController.java
浏览文件 @
75ae2ffa
...
...
@@ -2,8 +2,8 @@ package org.hongxi.whatsmars.earth.web.controller;
import
com.itextpdf.text.log.Logger
;
import
com.itextpdf.text.log.LoggerFactory
;
import
org.hongxi.whatsmars.common.pojo.Result
;
import
org.hongxi.whatsmars.common.util.ResultHelper
;
import
org.hongxi.whatsmars.
earth.
common.pojo.Result
;
import
org.hongxi.whatsmars.
earth.
common.util.ResultHelper
;
import
org.hongxi.whatsmars.earth.service.AccountService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Controller
;
...
...
whatsmars-earth/whatsmars-earth-web/src/main/java/org/hongxi/whatsmars/earth/web/controller/NewController.java
已删除
100644 → 0
浏览文件 @
f952e0eb
package
org.hongxi.whatsmars.earth.web.controller
;
import
com.itextpdf.text.log.Logger
;
import
com.itextpdf.text.log.LoggerFactory
;
import
org.hongxi.whatsmars.common.result.Result
;
import
org.hongxi.whatsmars.common.result.ResultHelper
;
import
org.hongxi.whatsmars.earth.service.UserService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.hongxi.whatsmars.earth.domain.pojo.User
;
/**
* Created by javahongxi on 2017/10/22.
*/
@RestController
@RequestMapping
(
"/test"
)
public
class
NewController
{
private
final
Logger
logger
=
LoggerFactory
.
getLogger
(
getClass
());
@Autowired
private
UserService
userService
;
// localhost:8080/test/add.jhtml
@RequestMapping
(
value
=
"/add"
,
method
=
RequestMethod
.
POST
)
public
Result
add
(
@RequestParam
(
name
=
"name"
)
String
username
,
@RequestParam
(
required
=
false
)
String
nickname
,
@RequestParam
(
required
=
false
,
defaultValue
=
"1"
)
Integer
gender
,
@RequestParam
Integer
age
)
{
try
{
User
user
=
new
User
();
user
.
setUsername
(
username
);
user
.
setNickname
(
nickname
);
user
.
setGender
(
gender
);
user
.
setAge
(
age
);
userService
.
add
(
user
);
}
catch
(
Exception
e
)
{
logger
.
error
(
"##########test add error"
,
e
);
return
ResultHelper
.
newErrorResult
();
}
return
ResultHelper
.
newSuccessResult
();
}
}
whatsmars-earth/whatsmars-earth-web/src/main/java/org/hongxi/whatsmars/earth/web/converter/StringToDateConverter.java
已删除
100644 → 0
浏览文件 @
f952e0eb
package
org.hongxi.whatsmars.earth.web.converter
;
import
org.hongxi.whatsmars.common.util.DateUtils
;
import
org.apache.commons.lang.StringUtils
;
import
org.springframework.core.convert.converter.Converter
;
import
java.util.Date
;
import
java.util.regex.Pattern
;
/**
* Created by zhaozhong on 2016/9/6.
*/
public
class
StringToDateConverter
implements
Converter
<
String
,
Date
>
{
private
Pattern
dateTimePattern
=
Pattern
.
compile
(
DateUtils
.
DATETIME_FORMAT_REGEX
);
private
Pattern
shortDatePattern
=
Pattern
.
compile
(
DateUtils
.
SHORTDATE_FORMAT_REGEX
);
private
Pattern
shortDate2Pattern
=
Pattern
.
compile
(
DateUtils
.
SHORTDATE_FORMAT2_REGEX
);
private
Pattern
datePattern
=
Pattern
.
compile
(
DateUtils
.
DATE_FORMAT_REGEX
);
private
Pattern
date2Pattern
=
Pattern
.
compile
(
DateUtils
.
DATE_FORMAT2_REGEX
);
@Override
public
Date
convert
(
String
source
)
{
if
(
StringUtils
.
isNotEmpty
(
source
))
{
if
(
shortDatePattern
.
matcher
(
source
).
matches
())
{
return
DateUtils
.
getDateFormat
(
source
,
DateUtils
.
DATE_SHORT_FORMAT
);
}
else
if
(
datePattern
.
matcher
(
source
).
matches
())
{
return
DateUtils
.
getDateFormat
(
source
,
DateUtils
.
DATEFORMAT
);
}
else
if
(
dateTimePattern
.
matcher
(
source
).
matches
())
{
return
DateUtils
.
getDateFormat
(
source
,
DateUtils
.
DATETIMEFORMAT
);
}
else
if
(
shortDate2Pattern
.
matcher
(
source
).
matches
())
{
return
DateUtils
.
getDateFormat
(
source
,
DateUtils
.
DATE_SHORT_FORMAT2
);
}
else
if
(
date2Pattern
.
matcher
(
source
).
matches
())
{
return
DateUtils
.
getDateFormat
(
source
,
DateUtils
.
DATEFORMAT2
);
}
}
return
null
;
}
}
whatsmars-earth/whatsmars-earth-web/src/main/java/org/hongxi/whatsmars/earth/web/interceptor/LoginInterceptor.java
浏览文件 @
75ae2ffa
package
org.hongxi.whatsmars.earth.web.interceptor
;
import
org.hongxi.whatsmars.common.util.DESUtils
;
import
org.hongxi.whatsmars.
earth.
common.util.DESUtils
;
import
org.hongxi.whatsmars.earth.domain.misc.LoginContext
;
import
org.hongxi.whatsmars.earth.domain.misc.LoginContextHolder
;
import
org.hongxi.whatsmars.earth.domain.misc.SystemConfig
;
...
...
whatsmars-earth/whatsmars-earth-web/src/main/resources/spring-velocity.xml
浏览文件 @
75ae2ffa
...
...
@@ -28,16 +28,6 @@
</mvc:message-converters>
</mvc:annotation-driven>
<!--加上下面这个对 mvc:resources 有影响-->
<!--<bean id="conversionService"
class="org.springframework.context.support.ConversionServiceFactoryBean">
<property name="converters">
<list>
<bean class="com.whatsmars.earth.web.converter.StringToDateConverter"/>
</list>
</property>
</bean>-->
<mvc:resources
mapping=
"/css/**"
location=
"/css/"
/>
<mvc:resources
mapping=
"/js/**"
location=
"/js/"
/>
<mvc:resources
mapping=
"/images/**"
location=
"/images/"
/>
...
...
whatsmars-earth/whatsmars-earth-web/src/main/webapp/WEB-INF/velocity-tools.xml
浏览文件 @
75ae2ffa
...
...
@@ -18,8 +18,4 @@
<key>
moneyUtils
</key>
<class>
org.hongxi.whatsmars.earth.domain.util.CalculatorUtils
</class>
</tool>
<tool>
<key>
numberFormatUtils
</key>
<class>
org.hongxi.whatsmars.common.util.NumberFormatUtils
</class>
</tool>
</toolbox>
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录