Code Monkey home page Code Monkey logo

utils's Introduction

SpringBoot 项目整理

目录

基础引用

<repositories>
    <repository>
        <id>jitpack.io</id>
        <url>https://www.jitpack.io</url>
    </repository>
</repositories>

module

1.util-parent 父module

    <parent>
        <groupId>com.github.yexuebm.utils</groupId>
        <artifactId>util-parent</artifactId>
        <version>0.0.6</version>
    </parent>

2.util-base 基础module

...
<dependencies>
...
        <dependency>
            <groupId>com.github.yexuebm.utils</groupId>
            <artifactId>util-base</artifactId>
            <version>${parent.version}</version>
        </dependency>
...    	
	</dependencies>

3.util-simple demo,springboot web项目

可分环境,放开pom.xml中如下注释,不放开注释com.yexuejc.util.simple.UtilSimpleApplication 无法直接运行。测试可运行com.yexuejc.util.simple.ApplicationRun

<!--多环境配置-->
<!--<filters>-->
    <!--<filter>src/main/filters/filter-${env}.properties</filter>-->
<!--</filters>-->

原因说明:test运行环境基于.../util-simple/src/test/resources/application.properties 正式运行基于环境util-simple/src/main/resources/pplication.properties 两者不相冲突

关于多环境env配置

4.util-exp 记录 Exception 相关 module

...
<dependencies>
...
        <dependency>
            <groupId>com.github.yexuebm.utils</groupId>
            <artifactId>util-exp</artifactId>
            <version>${parent.version}</version>
        </dependency>
...    	
	</dependencies>

5.util-redis redis 相关 module

...
<dependencies>
...
        <dependency>
            <groupId>com.github.yexuebm.utils</groupId>
            <artifactId>util-redis</artifactId>
            <version>0.0.6</version>
        </dependency>
...    	
	</dependencies>

6.util-kotlin 使用kotlin+thymeleaf+springboot 搭建的练手项目

utils's People

Contributors

yexuejc avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.