Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sv-springboot
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bsoft
sv-springboot
Commits
ab221255
Commit
ab221255
authored
Oct 14, 2019
by
whl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改包名
parent
5761fb99
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
51 additions
and
48 deletions
+51
-48
bsoft-common/pom.xml
+31
-30
bsoft-common/src/main/java/com/bsoft/common/base/BaseMapper.java
+1
-1
bsoft-common/src/main/java/com/bsoft/common/base/BaseResult.java
+1
-1
bsoft-common/src/main/java/com/bsoft/common/base/BaseService.java
+1
-1
bsoft-common/src/main/java/com/bsoft/common/base/BaseServiceImpl.java
+1
-1
bsoft-common/src/main/java/com/bsoft/common/base/BaseServiceMock.java
+1
-1
bsoft-common/src/main/java/com/bsoft/common/config/redisconfig/RedisConfig.java
+2
-2
bsoft-common/src/main/java/com/bsoft/common/config/swaggerconfig/SwaggerConfig.java
+2
-2
bsoft-common/src/main/java/com/bsoft/common/utils/AESUtil.java
+1
-1
bsoft-common/src/main/java/com/bsoft/common/utils/DESUtil.java
+1
-1
bsoft-common/src/main/java/com/bsoft/common/utils/JWTUtil.java
+2
-1
bsoft-common/src/main/java/com/bsoft/common/utils/JdbcUtil.java
+1
-1
bsoft-common/src/main/java/com/bsoft/common/utils/MD5Util.java
+1
-1
bsoft-common/src/main/java/com/bsoft/common/utils/RedisUtil.java
+1
-1
pom.xml
+4
-3
No files found.
suvalue-boo
t-common/pom.xml
→
bsof
t-common/pom.xml
View file @
ab221255
...
...
@@ -3,39 +3,39 @@
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>
<groupId>
com.
suvalue
</groupId>
<artifactId>
suvalue-boo
t
</artifactId>
<groupId>
com.
bsoft
</groupId>
<artifactId>
bsof
t
</artifactId>
<version>
1.0-SNAPSHOT
</version>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<artifactId>
suvalue-boo
t-common
</artifactId>
<artifactId>
bsof
t-common
</artifactId>
<dependencies>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-data-redis
</artifactId>
<version>
2.1.6.RELEASE
</version>
</dependency>
<dependency>
<groupId>
com.fasterxml.jackson.core
</groupId>
<artifactId>
jackson-databind
</artifactId>
<version>
2.9.9.3
</version>
</dependency>
<dependency>
<groupId>
io.springfox
</groupId>
<artifactId>
springfox-swagger2
</artifactId>
<version>
2.8.0
</version>
</dependency>
<dependency>
<groupId>
io.springfox
</groupId>
<artifactId>
springfox-swagger-ui
</artifactId>
<version>
2.8.0
</version>
</dependency>
<dependency>
<groupId>
com.auth0
</groupId>
<artifactId>
java-jwt
</artifactId>
<version>
3.4.0
</version>
</dependency>
</dependencies>
<dependencies>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-data-redis
</artifactId>
<version>
2.1.6.RELEASE
</version>
</dependency>
<dependency>
<groupId>
com.fasterxml.jackson.core
</groupId>
<artifactId>
jackson-databind
</artifactId>
<version>
2.9.9.3
</version>
</dependency>
<dependency>
<groupId>
io.springfox
</groupId>
<artifactId>
springfox-swagger2
</artifactId>
<version>
2.8.0
</version>
</dependency>
<dependency>
<groupId>
io.springfox
</groupId>
<artifactId>
springfox-swagger-ui
</artifactId>
<version>
2.8.0
</version>
</dependency>
<dependency>
<groupId>
com.auth0
</groupId>
<artifactId>
java-jwt
</artifactId>
<version>
3.4.0
</version>
</dependency>
</dependencies>
</project>
\ No newline at end of file
suvalue-boot-common/src/main/java/com/suvalue/boo
t/common/base/BaseMapper.java
→
bsoft-common/src/main/java/com/bsof
t/common/base/BaseMapper.java
View file @
ab221255
package
com
.
suvalue
.
boo
t
.
common
.
base
;
package
com
.
bsof
t
.
common
.
base
;
public
interface
BaseMapper
{
}
suvalue-boot-common/src/main/java/com/suvalue/boo
t/common/base/BaseResult.java
→
bsoft-common/src/main/java/com/bsof
t/common/base/BaseResult.java
View file @
ab221255
package
com
.
suvalue
.
boo
t
.
common
.
base
;
package
com
.
bsof
t
.
common
.
base
;
/**
* 统一返回结果类
...
...
suvalue-boot-common/src/main/java/com/suvalue/boo
t/common/base/BaseService.java
→
bsoft-common/src/main/java/com/bsof
t/common/base/BaseService.java
View file @
ab221255
package
com
.
suvalue
.
boo
t
.
common
.
base
;
package
com
.
bsof
t
.
common
.
base
;
public
interface
BaseService
<
Record
>
{
}
suvalue-boot-common/src/main/java/com/suvalue/boo
t/common/base/BaseServiceImpl.java
→
bsoft-common/src/main/java/com/bsof
t/common/base/BaseServiceImpl.java
View file @
ab221255
package
com
.
suvalue
.
boo
t
.
common
.
base
;
package
com
.
bsof
t
.
common
.
base
;
public
abstract
class
BaseServiceImpl
<
Record
>
implements
BaseService
<
Record
>
{
protected
abstract
BaseMapper
getMapper
();
...
...
suvalue-boot-common/src/main/java/com/suvalue/boo
t/common/base/BaseServiceMock.java
→
bsoft-common/src/main/java/com/bsof
t/common/base/BaseServiceMock.java
View file @
ab221255
package
com
.
suvalue
.
boo
t
.
common
.
base
;
package
com
.
bsof
t
.
common
.
base
;
public
class
BaseServiceMock
implements
BaseService
{
}
suvalue-boot-common/src/main/java/com/suvalue/boo
t/common/config/redisconfig/RedisConfig.java
→
bsoft-common/src/main/java/com/bsof
t/common/config/redisconfig/RedisConfig.java
View file @
ab221255
package
com
.
suvalue
.
boo
t
.
common
.
config
.
redisconfig
;
package
com
.
bsof
t
.
common
.
config
.
redisconfig
;
import
com.fasterxml.jackson.annotation.JsonAutoDetect
;
import
com.fasterxml.jackson.annotation.PropertyAccessor
;
import
com.fasterxml.jackson.databind.ObjectMapper
;
import
com.
suvalue.boo
t.common.utils.RedisUtil
;
import
com.
bsof
t.common.utils.RedisUtil
;
import
org.springframework.boot.autoconfigure.AutoConfigureAfter
;
import
org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration
;
import
org.springframework.context.annotation.Bean
;
...
...
suvalue-boot-common/src/main/java/com/suvalue/boo
t/common/config/swaggerconfig/SwaggerConfig.java
→
bsoft-common/src/main/java/com/bsof
t/common/config/swaggerconfig/SwaggerConfig.java
View file @
ab221255
package
com
.
suvalue
.
boo
t
.
common
.
config
.
swaggerconfig
;
package
com
.
bsof
t
.
common
.
config
.
swaggerconfig
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.context.annotation.Bean
;
...
...
@@ -19,7 +19,7 @@ public class SwaggerConfig {
//是否开启swagger,正式环境一般是需要关闭的,可根据springboot的多环境配置进行设置
@Value
(
value
=
"${swagger.enabled:false}"
)
Boolean
swaggerEnabled
=
true
;
@Value
(
"${swagger.basePackage:com.
suvalue
}"
)
@Value
(
"${swagger.basePackage:com.
bsoft.api.controller
}"
)
String
basePackage
;
@Bean
...
...
suvalue-boot-common/src/main/java/com/suvalue/boo
t/common/utils/AESUtil.java
→
bsoft-common/src/main/java/com/bsof
t/common/utils/AESUtil.java
View file @
ab221255
package
com
.
suvalue
.
boo
t
.
common
.
utils
;
package
com
.
bsof
t
.
common
.
utils
;
import
sun.misc.BASE64Decoder
;
import
sun.misc.BASE64Encoder
;
...
...
suvalue-boot-common/src/main/java/com/suvalue/boo
t/common/utils/DESUtil.java
→
bsoft-common/src/main/java/com/bsof
t/common/utils/DESUtil.java
View file @
ab221255
package
com
.
suvalue
.
boo
t
.
common
.
utils
;
package
com
.
bsof
t
.
common
.
utils
;
import
javax.crypto.*
;
import
javax.crypto.spec.DESKeySpec
;
...
...
suvalue-boot-common/src/main/java/com/suvalue/boo
t/common/utils/JWTUtil.java
→
bsoft-common/src/main/java/com/bsof
t/common/utils/JWTUtil.java
View file @
ab221255
package
com
.
suvalue
.
boo
t
.
common
.
utils
;
package
com
.
bsof
t
.
common
.
utils
;
import
com.auth0.jwt.JWT
;
import
com.auth0.jwt.JWTVerifier
;
...
...
@@ -16,6 +16,7 @@ public class JWTUtil {
public
static
String
createTokenWithAudience
(
String
sign
,
String
...
audiences
){
String
token
=
""
;
token
=
JWT
.
create
().
withAudience
(
audiences
)
.
sign
(
Algorithm
.
HMAC256
(
sign
));
return
token
;
...
...
suvalue-boot-common/src/main/java/com/suvalue/boo
t/common/utils/JdbcUtil.java
→
bsoft-common/src/main/java/com/bsof
t/common/utils/JdbcUtil.java
View file @
ab221255
package
com
.
suvalue
.
boo
t
.
common
.
utils
;
package
com
.
bsof
t
.
common
.
utils
;
import
java.sql.*
;
import
java.util.List
;
...
...
suvalue-boot-common/src/main/java/com/suvalue/boo
t/common/utils/MD5Util.java
→
bsoft-common/src/main/java/com/bsof
t/common/utils/MD5Util.java
View file @
ab221255
package
com
.
suvalue
.
boo
t
.
common
.
utils
;
package
com
.
bsof
t
.
common
.
utils
;
import
java.io.UnsupportedEncodingException
;
import
java.security.MessageDigest
;
...
...
suvalue-boot-common/src/main/java/com/suvalue/boo
t/common/utils/RedisUtil.java
→
bsoft-common/src/main/java/com/bsof
t/common/utils/RedisUtil.java
View file @
ab221255
package
com
.
suvalue
.
boo
t
.
common
.
utils
;
package
com
.
bsof
t
.
common
.
utils
;
import
org.springframework.data.redis.core.RedisTemplate
;
import
org.springframework.util.CollectionUtils
;
...
...
pom.xml
View file @
ab221255
...
...
@@ -4,8 +4,8 @@
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<modelVersion>
4.0.0
</modelVersion>
<groupId>
com.
suvalue
</groupId>
<artifactId>
suvalue-boo
t
</artifactId>
<groupId>
com.
bsoft
</groupId>
<artifactId>
bsof
t
</artifactId>
<packaging>
pom
</packaging>
<version>
1.0-SNAPSHOT
</version>
<properties>
...
...
@@ -13,7 +13,8 @@
<maven.compiler.target>
1.8
</maven.compiler.target>
</properties>
<modules>
<module>
suvalue-boot-common
</module>
<module>
bsoft-common
</module>
<module>
bsoft-api
</module>
<module>
suvalue-boot-upms
</module>
<module>
suvalue-boot-ucenter
</module>
<module>
suvalue-boot-dynamic-datasource
</module>
...
...
Write
Preview
Markdown
is supported
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