mirror of
https://gitee.com/jamen/slife.git
synced 2026-11-02 07:13:39 +00:00
去掉不必要配置与无用代码
This commit is contained in:
@@ -27,7 +27,6 @@
|
||||
<commons-lang3.version>3.4</commons-lang3.version>
|
||||
<slife.version>1.0-SNAPSHOT</slife.version>
|
||||
<swagger.version>2.8.0</swagger.version>
|
||||
<!--<druid.version>1.1.1</druid.version>-->
|
||||
<mybatis-plus.version>2.1.0</mybatis-plus.version>
|
||||
<activiti.version>5.22.0</activiti.version>
|
||||
<commons-codec.version>1.10</commons-codec.version>
|
||||
@@ -57,8 +56,6 @@
|
||||
|
||||
<!--全局依赖-->
|
||||
<dependencies>
|
||||
|
||||
<!-- 新依赖start -->
|
||||
<dependency>
|
||||
<groupId>com.alibaba</groupId>
|
||||
<artifactId>druid-spring-boot-starter</artifactId>
|
||||
@@ -76,7 +73,6 @@
|
||||
<artifactId>mybatis-plus-boot-starter</artifactId>
|
||||
<version>3.1.0</version>
|
||||
</dependency>
|
||||
<!-- 新依赖end -->
|
||||
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
@@ -111,18 +107,6 @@
|
||||
<version>${shiro.version}</version>
|
||||
</dependency>
|
||||
|
||||
<!--<dependency>-->
|
||||
<!--<groupId>org.apache.shiro</groupId>-->
|
||||
<!--<artifactId>shiro-core</artifactId>-->
|
||||
<!--<version>${shiro.version}</version>-->
|
||||
<!--</dependency>-->
|
||||
|
||||
<!--<dependency>-->
|
||||
<!--<groupId>org.apache.shiro</groupId>-->
|
||||
<!--<artifactId>shiro-spring</artifactId>-->
|
||||
<!--<version>${shiro.version}</version>-->
|
||||
<!--</dependency>-->
|
||||
|
||||
<!--缓存-->
|
||||
<dependency>
|
||||
<groupId>org.ehcache</groupId>
|
||||
@@ -164,37 +148,18 @@
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-freemarker</artifactId>
|
||||
</dependency>
|
||||
<!--<dependency>-->
|
||||
<!--<groupId>org.mybatis.spring.boot</groupId>-->
|
||||
<!--<artifactId>mybatis-spring-boot-starter</artifactId>-->
|
||||
<!--</dependency>-->
|
||||
<!--<dependency>-->
|
||||
<!--<groupId>com.baomidou</groupId>-->
|
||||
<!--<artifactId>mybatis-plus</artifactId>-->
|
||||
<!--</dependency>-->
|
||||
<!--<dependency>-->
|
||||
<!--<groupId>com.baomidou</groupId>-->
|
||||
<!--<artifactId>mybatisplus-spring-boot-starter</artifactId>-->
|
||||
<!--<version>${mybatisplus-spring-boot-starter.version}</version>-->
|
||||
<!--</dependency>-->
|
||||
|
||||
<dependency>
|
||||
<groupId>mysql</groupId>
|
||||
<artifactId>mysql-connector-java</artifactId>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<!--<dependency>-->
|
||||
<!--<groupId>com.alibaba</groupId>-->
|
||||
<!--<artifactId>druid</artifactId>-->
|
||||
<!--</dependency>-->
|
||||
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-jdbc</artifactId>
|
||||
</dependency>
|
||||
|
||||
|
||||
|
||||
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-aop</artifactId>
|
||||
@@ -242,22 +207,6 @@
|
||||
<artifactId>commons-lang3</artifactId>
|
||||
<version>${commons-lang3.version}</version>
|
||||
</dependency>
|
||||
<!--<dependency>-->
|
||||
<!--<groupId>com.alibaba</groupId>-->
|
||||
<!--<artifactId>druid</artifactId>-->
|
||||
<!--<version>${druid.version}</version>-->
|
||||
<!--</dependency>-->
|
||||
|
||||
<!--<dependency>-->
|
||||
<!--<groupId>org.mybatis.spring.boot</groupId>-->
|
||||
<!--<artifactId>mybatis-spring-boot-starter</artifactId>-->
|
||||
<!--<version>1.3.0</version>-->
|
||||
<!--</dependency>-->
|
||||
<!--<dependency>-->
|
||||
<!--<groupId>com.baomidou</groupId>-->
|
||||
<!--<artifactId>mybatis-plus</artifactId>-->
|
||||
<!--<version>${mybatis-plus.version}</version>-->
|
||||
<!--</dependency>-->
|
||||
|
||||
<dependency>
|
||||
<groupId>com.slife</groupId>
|
||||
|
||||
@@ -20,26 +20,6 @@
|
||||
<artifactId>slife-common</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!--<dependency>-->
|
||||
<!--<groupId>org.activiti</groupId>-->
|
||||
<!--<artifactId>activiti-spring-boot-starter-rest-api</artifactId>-->
|
||||
<!--<exclusions>-->
|
||||
<!--<exclusion>-->
|
||||
<!--<artifactId>mybatis</artifactId>-->
|
||||
<!--<groupId>org.mybatis</groupId>-->
|
||||
<!--</exclusion>-->
|
||||
<!--<exclusion>-->
|
||||
<!--<artifactId>activation</artifactId>-->
|
||||
<!--<groupId>javax.activation</groupId>-->
|
||||
<!--</exclusion>-->
|
||||
<!--</exclusions>-->
|
||||
<!--</dependency>-->
|
||||
|
||||
<!--<dependency>-->
|
||||
<!--<groupId>org.activiti</groupId>-->
|
||||
<!--<artifactId>activiti-spring-boot-starter-actuator</artifactId>-->
|
||||
<!--</dependency>-->
|
||||
|
||||
<!-- activiti -->
|
||||
<dependency>
|
||||
<groupId>org.activiti</groupId>
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package com.slife.config;
|
||||
|
||||
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.BeansException;
|
||||
@@ -8,22 +9,25 @@ import org.springframework.beans.factory.config.BeanPostProcessor;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
|
||||
/**
|
||||
* Created by chenjianan on 2016/12/16-11:25.
|
||||
* <p>
|
||||
* Describe:
|
||||
* 如果我们需要在Spring容器完成Bean的实例化,配置和其他的初始化后添加一些自己的逻辑处理,
|
||||
* 我们就可以定义一个或者多个BeanPostProcessor接口的实现。
|
||||
*
|
||||
* @author jamen
|
||||
* @date 2016.12.16
|
||||
*/
|
||||
@Configuration
|
||||
@Slf4j
|
||||
//@Configuration
|
||||
public class InstallBean implements BeanPostProcessor {
|
||||
private Logger logger = LoggerFactory.getLogger(getClass());
|
||||
|
||||
@Override
|
||||
public Object postProcessBeforeInitialization(Object bean, String beanName) throws BeansException {
|
||||
logger.info("对象" + beanName + "开始实例化");
|
||||
log.info("对象" + beanName + "开始实例化");
|
||||
return bean;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object postProcessAfterInitialization(Object bean, String beanName) throws BeansException {
|
||||
logger.info("对象" + beanName + "实例化完成");
|
||||
log.info("对象" + beanName + "实例化完成");
|
||||
return bean;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,20 +1,24 @@
|
||||
package com.slife.config;
|
||||
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.BeansException;
|
||||
import org.springframework.beans.factory.config.BeanFactoryPostProcessor;
|
||||
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
|
||||
/**
|
||||
* Created by chenjianan on 2016/12/15-17:24.
|
||||
* <p>
|
||||
* Describe:
|
||||
* beanFactoryPostprocessor的作用是在beanFactory初始化之后提供一个修改的机会。
|
||||
* 在Spring实例化bean的前后执行一些附加操作
|
||||
*
|
||||
* @author jamen
|
||||
* @date 2016.12.15
|
||||
*/
|
||||
@Configuration
|
||||
@Slf4j
|
||||
//@Configuration
|
||||
public class Setup implements BeanFactoryPostProcessor {
|
||||
|
||||
@Override
|
||||
public void postProcessBeanFactory(ConfigurableListableBeanFactory configurableListableBeanFactory) throws BeansException {
|
||||
System.out.println("beanFactoryPostprocessor的作用是在beanFactory初始化之后提供一个修改的机会。......这时候bean 还没实例化(instance)");
|
||||
log.info("beanFactoryPostprocessor的作用是在beanFactory初始化之后提供一个修改的机会。......这时候bean 还没实例化(instance)");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,24 +1,10 @@
|
||||
${AnsiColor.RED}
|
||||
___ ___
|
||||
/\_ \ __ /'___\
|
||||
____\//\ \ /\_\/\ \__/ __
|
||||
/',__\ \ \ \ \/\ \ \ ,__\/'__`\
|
||||
/\__, `\ \_\ \_\ \ \ \ \_/\ __/
|
||||
\/\____/ /\____\\ \_\ \_\\ \____\
|
||||
\/___/ \/____/ \/_/\/_/ \/____/
|
||||
|
||||
|
||||
SSSSSSSSSSSSSSS LLLLLLLLLLL iiii ffffffffffffffff
|
||||
SS:::::::::::::::SL:::::::::L i::::i f::::::::::::::::f
|
||||
S:::::SSSSSS::::::SL:::::::::L iiii f::::::::::::::::::f
|
||||
S:::::S SSSSSSSLL:::::::LL f::::::fffffff:::::f
|
||||
S:::::S L:::::L iiiiiii f:::::f ffffffeeeeeeeeeeee
|
||||
S:::::S L:::::L i:::::i f:::::f ee::::::::::::ee
|
||||
S::::SSSS L:::::L i::::i f:::::::ffffff e::::::eeeee:::::ee
|
||||
SS::::::SSSSS L:::::L i::::i f::::::::::::f e::::::e e:::::e
|
||||
SSS::::::::SS L:::::L i::::i f::::::::::::f e:::::::eeeee::::::e
|
||||
SSSSSS::::S L:::::L i::::i f:::::::ffffff e:::::::::::::::::e
|
||||
S:::::S L:::::L i::::i f:::::f e::::::eeeeeeeeeee
|
||||
S:::::S L:::::L LLLLLL i::::i f:::::f e:::::::e
|
||||
SSSSSSS S:::::SLL:::::::LLLLLLLLL:::::Li::::::if:::::::f e::::::::e
|
||||
S::::::SSSSSS:::::SL::::::::::::::::::::::Li::::::if:::::::f e::::::::eeeeeeee
|
||||
S:::::::::::::::SS L::::::::::::::::::::::Li::::::if:::::::f ee:::::::::::::e
|
||||
SSSSSSSSSSSSSSS LLLLLLLLLLLLLLLLLLLLLLLLiiiiiiiifffffffff eeeeeeeeeeeeee
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Spring Boot: ${spring-boot.version}
|
||||
Reference in New Issue
Block a user