Commit ab221255 by whl

修改包名

parent 5761fb99
...@@ -3,15 +3,15 @@ ...@@ -3,15 +3,15 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 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"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent> <parent>
<groupId>com.suvalue</groupId> <groupId>com.bsoft</groupId>
<artifactId>suvalue-boot</artifactId> <artifactId>bsoft</artifactId>
<version>1.0-SNAPSHOT</version> <version>1.0-SNAPSHOT</version>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<artifactId>suvalue-boot-common</artifactId> <artifactId>bsoft-common</artifactId>
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-redis</artifactId> <artifactId>spring-boot-starter-data-redis</artifactId>
...@@ -37,5 +37,5 @@ ...@@ -37,5 +37,5 @@
<artifactId>java-jwt</artifactId> <artifactId>java-jwt</artifactId>
<version>3.4.0</version> <version>3.4.0</version>
</dependency> </dependency>
</dependencies> </dependencies>
</project> </project>
\ No newline at end of file
package com.suvalue.boot.common.base; package com.bsoft.common.base;
public interface BaseMapper { public interface BaseMapper {
} }
package com.suvalue.boot.common.base; package com.bsoft.common.base;
/** /**
* 统一返回结果类 * 统一返回结果类
......
package com.suvalue.boot.common.base; package com.bsoft.common.base;
public interface BaseService<Record> { public interface BaseService<Record> {
} }
package com.suvalue.boot.common.base; package com.bsoft.common.base;
public abstract class BaseServiceImpl<Record> implements BaseService<Record> { public abstract class BaseServiceImpl<Record> implements BaseService<Record> {
protected abstract BaseMapper getMapper(); protected abstract BaseMapper getMapper();
......
package com.suvalue.boot.common.base; package com.bsoft.common.base;
public class BaseServiceMock implements BaseService { public class BaseServiceMock implements BaseService {
} }
package com.suvalue.boot.common.config.redisconfig; package com.bsoft.common.config.redisconfig;
import com.fasterxml.jackson.annotation.JsonAutoDetect; import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.PropertyAccessor; import com.fasterxml.jackson.annotation.PropertyAccessor;
import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.ObjectMapper;
import com.suvalue.boot.common.utils.RedisUtil; import com.bsoft.common.utils.RedisUtil;
import org.springframework.boot.autoconfigure.AutoConfigureAfter; import org.springframework.boot.autoconfigure.AutoConfigureAfter;
import org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration; import org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration;
import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Bean;
......
package com.suvalue.boot.common.config.swaggerconfig; package com.bsoft.common.config.swaggerconfig;
import org.springframework.beans.factory.annotation.Value; import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Bean;
...@@ -19,7 +19,7 @@ public class SwaggerConfig { ...@@ -19,7 +19,7 @@ public class SwaggerConfig {
//是否开启swagger,正式环境一般是需要关闭的,可根据springboot的多环境配置进行设置 //是否开启swagger,正式环境一般是需要关闭的,可根据springboot的多环境配置进行设置
@Value(value = "${swagger.enabled:false}") @Value(value = "${swagger.enabled:false}")
Boolean swaggerEnabled = true; Boolean swaggerEnabled = true;
@Value("${swagger.basePackage:com.suvalue}") @Value("${swagger.basePackage:com.bsoft.api.controller}")
String basePackage; String basePackage;
@Bean @Bean
......
package com.suvalue.boot.common.utils; package com.bsoft.common.utils;
import sun.misc.BASE64Decoder; import sun.misc.BASE64Decoder;
import sun.misc.BASE64Encoder; import sun.misc.BASE64Encoder;
......
package com.suvalue.boot.common.utils; package com.bsoft.common.utils;
import javax.crypto.*; import javax.crypto.*;
import javax.crypto.spec.DESKeySpec; import javax.crypto.spec.DESKeySpec;
......
package com.suvalue.boot.common.utils; package com.bsoft.common.utils;
import com.auth0.jwt.JWT; import com.auth0.jwt.JWT;
import com.auth0.jwt.JWTVerifier; import com.auth0.jwt.JWTVerifier;
...@@ -16,6 +16,7 @@ public class JWTUtil { ...@@ -16,6 +16,7 @@ public class JWTUtil {
public static String createTokenWithAudience(String sign, String... audiences){ public static String createTokenWithAudience(String sign, String... audiences){
String token=""; String token="";
token= JWT.create().withAudience(audiences) token= JWT.create().withAudience(audiences)
.sign(Algorithm.HMAC256(sign)); .sign(Algorithm.HMAC256(sign));
return token; return token;
......
package com.suvalue.boot.common.utils; package com.bsoft.common.utils;
import java.sql.*; import java.sql.*;
import java.util.List; import java.util.List;
......
package com.suvalue.boot.common.utils; package com.bsoft.common.utils;
import java.io.UnsupportedEncodingException; import java.io.UnsupportedEncodingException;
import java.security.MessageDigest; import java.security.MessageDigest;
......
package com.suvalue.boot.common.utils; package com.bsoft.common.utils;
import org.springframework.data.redis.core.RedisTemplate; import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.util.CollectionUtils; import org.springframework.util.CollectionUtils;
......
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 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> <modelVersion>4.0.0</modelVersion>
<groupId>com.suvalue</groupId> <groupId>com.bsoft</groupId>
<artifactId>suvalue-boot</artifactId> <artifactId>bsoft</artifactId>
<packaging>pom</packaging> <packaging>pom</packaging>
<version>1.0-SNAPSHOT</version> <version>1.0-SNAPSHOT</version>
<properties> <properties>
...@@ -13,7 +13,8 @@ ...@@ -13,7 +13,8 @@
<maven.compiler.target>1.8</maven.compiler.target> <maven.compiler.target>1.8</maven.compiler.target>
</properties> </properties>
<modules> <modules>
<module>suvalue-boot-common</module> <module>bsoft-common</module>
<module>bsoft-api</module>
<module>suvalue-boot-upms</module> <module>suvalue-boot-upms</module>
<module>suvalue-boot-ucenter</module> <module>suvalue-boot-ucenter</module>
<module>suvalue-boot-dynamic-datasource</module> <module>suvalue-boot-dynamic-datasource</module>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment