Commit 8184b3fd by fsn

一些配置改动

parent 4c7f08a1
...@@ -31,7 +31,6 @@ public class OtherConfigs { ...@@ -31,7 +31,6 @@ public class OtherConfigs {
public EhCacheCacheManager cacheManager(CacheManager cacheManager) { public EhCacheCacheManager cacheManager(CacheManager cacheManager) {
return new EhCacheCacheManager(cacheManager); return new EhCacheCacheManager(cacheManager);
} }
@Bean @Bean
public EhCacheManagerFactoryBean ehcache() { public EhCacheManagerFactoryBean ehcache() {
EhCacheManagerFactoryBean ehCacheManagerFactoryBean = new EhCacheManagerFactoryBean(); EhCacheManagerFactoryBean ehCacheManagerFactoryBean = new EhCacheManagerFactoryBean();
...@@ -75,7 +74,6 @@ public class OtherConfigs { ...@@ -75,7 +74,6 @@ public class OtherConfigs {
public DruidStatInterceptor druidStatInterceptor() { public DruidStatInterceptor druidStatInterceptor() {
return new DruidStatInterceptor(); return new DruidStatInterceptor();
} }
@Bean @Bean
public BeanTypeAutoProxyCreator beanTypeAutoProxyCreator() { public BeanTypeAutoProxyCreator beanTypeAutoProxyCreator() {
BeanTypeAutoProxyCreator beanTypeAutoProxyCreator = new BeanTypeAutoProxyCreator(); BeanTypeAutoProxyCreator beanTypeAutoProxyCreator = new BeanTypeAutoProxyCreator();
......
...@@ -152,7 +152,6 @@ public class ShiroConfig { ...@@ -152,7 +152,6 @@ public class ShiroConfig {
public DefaultAdvisorAutoProxyCreator defaultAdvisorAutoProxyCreator() { public DefaultAdvisorAutoProxyCreator defaultAdvisorAutoProxyCreator() {
return new DefaultAdvisorAutoProxyCreator(); return new DefaultAdvisorAutoProxyCreator();
} }
@Bean @Bean
public AuthorizationAttributeSourceAdvisor authorizationAttributeSourceAdvisor(DefaultWebSecurityManager securityManager) { public AuthorizationAttributeSourceAdvisor authorizationAttributeSourceAdvisor(DefaultWebSecurityManager securityManager) {
AuthorizationAttributeSourceAdvisor authorizationAttributeSourceAdvisor = AuthorizationAttributeSourceAdvisor authorizationAttributeSourceAdvisor =
......
...@@ -21,7 +21,7 @@ import java.util.Map; ...@@ -21,7 +21,7 @@ import java.util.Map;
* @author stylefeng * @author stylefeng
* @Date 2017/5/21 12:38 * @Date 2017/5/21 12:38
*/ */
public class MpGenerator { public class MyBatisPlusGenerator {
public static void main(String[] args) { public static void main(String[] args) {
AutoGenerator mpg = new AutoGenerator(); AutoGenerator mpg = new AutoGenerator();
......
...@@ -4,20 +4,11 @@ server: ...@@ -4,20 +4,11 @@ server:
#spring #spring
spring: spring:
devtools:
restart:
enabled: false
# mysql datasource
datasource: datasource:
url: jdbc:mysql://127.0.0.1:3306/guns?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull url: jdbc:mysql://127.0.0.1:3306/guns?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull
username: root username: root
password: root password: root
#web
mutipart:
location:
#mybatis #mybatis
mybatis-plus: mybatis-plus:
mapper-locations: classpath*:com/stylefeng/guns/**/mapping/*.xml mapper-locations: classpath*:com/stylefeng/guns/**/mapping/*.xml
......
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