Commit 39e6283f by fengshuonan

转移系统的配置从sys到main模块

parent a408909a
......@@ -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>
......
......@@ -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>-->
......
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() {
......
......@@ -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
......
......@@ -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;
......
......@@ -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;
......
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;
......
......@@ -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;
......
......@@ -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;
......
......@@ -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;
......
......@@ -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;
......
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;
......
......@@ -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;
......
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