# Mars-java **Repository Path**: edik/Mars-java ## Basic Information - **Project Name**: Mars-java - **Description**: 这是一个javaWeb开发框架,构建非常简单,导入一个jar包,编写一个yml配置文件,就可以从main方法启动了,单表操作只需要一行注解 - **Primary Language**: Java - **License**: GPL-3.0 - **Default Branch**: master - **Homepage**: http://mars-framework.com - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 40 - **Created**: 2019-10-23 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README

![](https://img.shields.io/badge/licenes-GPL-brightgreen.svg) ![](https://img.shields.io/badge/jdk-1.8+-brightgreen.svg)

The Js framework has React, Vue, AngularJS, but the Java framework has only one Spring. Many people say that I am making wheels, but I don't think so, so... it's time to challenge Spring, I hope everyone can get involved, contribute code, and give Java developers another option.

Other project

What can I do

Only need one jar package

```` com.github.yuyenews mars-start-pure [The latest version, you can see the document] ````

A configuration file

```` port: 8088 jdbc: #Configure the data source, it must be Alibaba's druid data source dataSource: name: dataSource url: jdbc:mysql://10.211.55.5:3306/test?serverTimezone=GMT%2B8 username: root password: rootroot driverClassName: com.mysql.cj.jdbc.Driver ````

Then start from the main method

```` public class Start { public static void main(String[] args){ StartMars.start(Start.class); } } ````

No other configuration files other than this

----------Upgrade the Mars-java project to the Mars-cloud project and its simplicity----------

Just need to change one start

```` com.github.yuyenews mars-cloud-start [The latest version, you can see the document] ````

Add 5 rows configuration

```` cloud: # Service name, the name of the load balancing cluster of the same service must be the same, and must be unique between different clusters. name: cloud-client1 sessionTimeout: 10000 # Whether as a gateway gateWay: yes timeOut: 10000 # Zookeeper address, multiple addresses are separated by commas, # multiple addresses, must be double quotes, otherwise parsing yml files will be wrong register: 10.211.55.9:2180 ````

Very easy to learn

Document

[Document](http://mars-framework.com)

Expansion pack

Support redis connection

Encapsulates Email, MD5, AES and other tool classes and integrates hutool

[Extension package](https://github.com/yuyenews/Mars-extends)

Simple comparison

name AOP IOC MVC ORM configuration file startup method
Mars-java OK OK OK Mybatis,JDBCTemplete Only one and supports remote configuration Main Method
Springboot OK OK OK Support most mainstream frameworks Only one and supports remote configuration Main Method,War+Tomcat