Code Monkey home page Code Monkey logo

mermaid-framework-parent's Introduction

关于mermaid-framework

mermaid-framework是应用程序核心框架,基于Spring boot开发。mermaid-framework包含以下组件:

Quick Start

pom.xml引用

<dependencies>
    <dependency>
        <groupId>com.mermaid.framework</groupId>
        <artifactId>mermaid-core</artifactId>
        <version>${mermaid.framework.version}</version>
    </dependency>
</dependencies>

概念转变

WEB应用部署方式从"WEB容器部署war应用"变为"从JAVA应用程序中嵌入式WEB SERVER",一个容器中部署多个不同应用的时代已经过去,新一代JAVAWEB的应用核心是 轻量级,核心技术是嵌入式WEB SERVER(TOMCAT、JETTY)等。 推荐项目打成jar包并以JAVA应用程序的方式去构建,部署和启动WEB应用

使用maven插件打包

<build>
        <resources>
            <resource>
                <directory>src/main/java</directory>
                <excludes>
                    <exclude>**/*.java</exclude>
                </excludes>
                <includes>
                    <include>**/*.*</include>
                </includes>
            </resource>
            <resource>
                <directory>src/main/resources</directory>
                <includes>
                    <include>**/*.*</include>
                </includes>
                <filtering>true</filtering>
            </resource>
        </resources>
        <!--<pluginManagement> -->
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
                <version>1.3.5.RELEASE</version>
                <configuration>
                    <mainClass>com.mermaid.framework.MermaidApplicationEntry</mainClass>
                    <layout>JAR</layout>
                </configuration>
                <executions>
                    <execution>
                        <goals>
                            <goal>repackage</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>

    </build>

命令: mvn clean package,${maven-project}/target目录下将会生成jar包${maven-project}-${version}.jar

启动

命令:java -jar ${maven-project}-${version}.jar,自定义端口访问,例如:http://localhost:8080

Copyright © 库陈胜

mermaid-framework-parent's People

Contributors

kuchensheng avatar

Stargazers

 avatar 大牛柿 avatar  avatar  avatar  avatar

Watchers

James Cloos avatar  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.