Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
guns-vip
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
chenjunxiong
guns-vip
Commits
39e6283f
Commit
39e6283f
authored
Jun 13, 2019
by
fengshuonan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
转移系统的配置从sys到main模块
parent
a408909a
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
30 additions
and
19 deletions
+30
-19
guns-sys/pom.xml
+0
-6
guns-vip-main/pom.xml
+7
-0
guns-vip-main/src/main/java/cn/stylefeng/guns/config/GunsPropertiesConfig.java
+13
-1
guns-vip-main/src/main/java/cn/stylefeng/guns/config/SwaggerConfig.java
+1
-3
guns-vip-main/src/main/java/cn/stylefeng/guns/config/cache/EhCacheConfig.java
+1
-1
guns-vip-main/src/main/java/cn/stylefeng/guns/config/datasource/DataSourceConfig.java
+1
-1
guns-vip-main/src/main/java/cn/stylefeng/guns/config/datasource/PluginsConfig.java
+1
-1
guns-vip-main/src/main/java/cn/stylefeng/guns/config/datasource/SqlSessionFactoryConfig.java
+1
-1
guns-vip-main/src/main/java/cn/stylefeng/guns/config/web/BeetlConfig.java
+1
-1
guns-vip-main/src/main/java/cn/stylefeng/guns/config/web/ShiroConfig.java
+1
-1
guns-vip-main/src/main/java/cn/stylefeng/guns/config/web/SpringSessionConfig.java
+1
-1
guns-vip-main/src/main/java/cn/stylefeng/guns/config/web/String2DateConfig.java
+1
-1
guns-vip-main/src/main/java/cn/stylefeng/guns/config/web/WebConfig.java
+1
-1
No files found.
guns-sys/pom.xml
View file @
39e6283f
...
...
@@ -24,12 +24,6 @@
<version>
1.0.0
</version>
</dependency>
<dependency>
<groupId>
cn.stylefeng
</groupId>
<artifactId>
guns-base-db-container
</artifactId>
<version>
1.0.0
</version>
</dependency>
</dependencies>
<build>
...
...
guns-vip-main/pom.xml
View file @
39e6283f
...
...
@@ -38,6 +38,13 @@
<version>
1.0.0
</version>
</dependency>
<!-- 数据源容器-->
<dependency>
<groupId>
cn.stylefeng
</groupId>
<artifactId>
guns-base-db-container
</artifactId>
<version>
1.0.0
</version>
</dependency>
<!-- 分布式job -->
<!-- <dependency>-->
<!-- <groupId>cn.stylefeng</groupId>-->
...
...
guns-
sys/src/main/java/cn/stylefeng/guns/sys/config/properties
/GunsPropertiesConfig.java
→
guns-
vip-main/src/main/java/cn/stylefeng/guns/config
/GunsPropertiesConfig.java
View file @
39e6283f
package
cn
.
stylefeng
.
guns
.
sys
.
config
.
properties
;
package
cn
.
stylefeng
.
guns
.
config
;
import
cn.stylefeng.guns.sys.core.properties.BeetlProperties
;
import
cn.stylefeng.guns.sys.core.properties.GunsProperties
;
...
...
@@ -15,12 +15,24 @@ import org.springframework.context.annotation.Configuration;
@Configuration
public
class
GunsPropertiesConfig
{
/**
* beetl模板的配置
*
* @author fengshuonan
* @Date 2019-06-13 08:55
*/
@Bean
@ConfigurationProperties
(
prefix
=
BeetlProperties
.
BEETLCONF_PREFIX
)
public
BeetlProperties
beetlProperties
()
{
return
new
BeetlProperties
();
}
/**
* Guns的属性配置
*
* @author fengshuonan
* @Date 2019-06-13 08:56
*/
@Bean
@ConfigurationProperties
(
prefix
=
GunsProperties
.
PREFIX
)
public
GunsProperties
gunsProperties
()
{
...
...
guns-
sys/src/main/java/cn/stylefeng/guns/sy
s/config/SwaggerConfig.java
→
guns-
vip-main/src/main/java/cn/stylefeng/gun
s/config/SwaggerConfig.java
View file @
39e6283f
...
...
@@ -13,10 +13,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
cn
.
stylefeng
.
guns
.
sys
.
config
;
package
cn
.
stylefeng
.
guns
.
config
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOnProperty
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
import
springfox.documentation.builders.ApiInfoBuilder
;
...
...
@@ -36,7 +35,6 @@ import springfox.documentation.swagger2.annotations.EnableSwagger2;
*/
@Configuration
@EnableSwagger2
@ConditionalOnProperty
(
prefix
=
"guns"
,
name
=
"swagger-open"
,
havingValue
=
"true"
)
public
class
SwaggerConfig
{
@Bean
...
...
guns-
sys/src/main/java/cn/stylefeng/guns/sys/config
/EhCacheConfig.java
→
guns-
vip-main/src/main/java/cn/stylefeng/guns/config/cache
/EhCacheConfig.java
View file @
39e6283f
...
...
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
cn
.
stylefeng
.
guns
.
sys
.
config
;
package
cn
.
stylefeng
.
guns
.
config
.
cache
;
import
net.sf.ehcache.CacheManager
;
import
org.springframework.cache.annotation.EnableCaching
;
...
...
guns-
sys/src/main/java/cn/stylefeng/guns/sy
s/config/datasource/DataSourceConfig.java
→
guns-
vip-main/src/main/java/cn/stylefeng/gun
s/config/datasource/DataSourceConfig.java
View file @
39e6283f
...
...
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
cn
.
stylefeng
.
guns
.
sys
.
config
.
datasource
;
package
cn
.
stylefeng
.
guns
.
config
.
datasource
;
import
cn.stylefeng.roses.core.config.properties.DruidProperties
;
import
cn.stylefeng.roses.core.mutidatasource.aop.MultiSourceExAop
;
...
...
guns-
sys/src/main/java/cn/stylefeng/guns/sy
s/config/datasource/PluginsConfig.java
→
guns-
vip-main/src/main/java/cn/stylefeng/gun
s/config/datasource/PluginsConfig.java
View file @
39e6283f
package
cn
.
stylefeng
.
guns
.
sys
.
config
.
datasource
;
package
cn
.
stylefeng
.
guns
.
config
.
datasource
;
import
cn.stylefeng.guns.sys.core.shiro.ShiroKit
;
import
cn.stylefeng.roses.core.metadata.CustomMetaObjectHandler
;
...
...
guns-
sys/src/main/java/cn/stylefeng/guns/sy
s/config/datasource/SqlSessionFactoryConfig.java
→
guns-
vip-main/src/main/java/cn/stylefeng/gun
s/config/datasource/SqlSessionFactoryConfig.java
View file @
39e6283f
...
...
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
cn
.
stylefeng
.
guns
.
sys
.
config
.
datasource
;
package
cn
.
stylefeng
.
guns
.
config
.
datasource
;
import
cn.stylefeng.datasource.container.context.DataSourceContext
;
import
cn.stylefeng.datasource.container.context.SqlSessionFactoryContext
;
...
...
guns-
sys/src/main/java/cn/stylefeng/guns/sy
s/config/web/BeetlConfig.java
→
guns-
vip-main/src/main/java/cn/stylefeng/gun
s/config/web/BeetlConfig.java
View file @
39e6283f
...
...
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
cn
.
stylefeng
.
guns
.
sys
.
config
.
web
;
package
cn
.
stylefeng
.
guns
.
config
.
web
;
import
cn.stylefeng.guns.sys.core.beetl.BeetlConfiguration
;
import
cn.stylefeng.guns.sys.core.properties.BeetlProperties
;
...
...
guns-vip-main/src/main/java/cn/stylefeng/guns/config/ShiroConfig.java
→
guns-vip-main/src/main/java/cn/stylefeng/guns/config/
web/
ShiroConfig.java
View file @
39e6283f
...
...
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
cn
.
stylefeng
.
guns
.
config
;
package
cn
.
stylefeng
.
guns
.
config
.
web
;
import
cn.stylefeng.guns.oauth.core.shiro.matcher.WithOAuthTokenMatcher
;
import
cn.stylefeng.guns.sys.core.constant.Const
;
...
...
guns-vip-main/src/main/java/cn/stylefeng/guns/config/SpringSessionConfig.java
→
guns-vip-main/src/main/java/cn/stylefeng/guns/config/
web/
SpringSessionConfig.java
View file @
39e6283f
...
...
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
cn
.
stylefeng
.
guns
.
config
;
package
cn
.
stylefeng
.
guns
.
config
.
web
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOnProperty
;
...
...
guns-
sys/src/main/java/cn/stylefeng/guns/sy
s/config/web/String2DateConfig.java
→
guns-
vip-main/src/main/java/cn/stylefeng/gun
s/config/web/String2DateConfig.java
View file @
39e6283f
package
cn
.
stylefeng
.
guns
.
sys
.
config
.
web
;
package
cn
.
stylefeng
.
guns
.
config
.
web
;
import
cn.hutool.core.date.DateUtil
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
guns-
sys/src/main/java/cn/stylefeng/guns/sy
s/config/web/WebConfig.java
→
guns-
vip-main/src/main/java/cn/stylefeng/gun
s/config/web/WebConfig.java
View file @
39e6283f
...
...
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
cn
.
stylefeng
.
guns
.
sys
.
config
.
web
;
package
cn
.
stylefeng
.
guns
.
config
.
web
;
import
cn.stylefeng.guns.sys.core.attribute.AttributeSetInteceptor
;
import
cn.stylefeng.guns.sys.core.constant.Const
;
...
...
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