com.github.percychuang:modest-core

Java Modest

License

License

GroupId

GroupId

com.github.percychuang
ArtifactId

ArtifactId

modest-core
Last Version

Last Version

0.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

Java Modest

Download modest-core

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.percychuang/modest-core/ -->
<dependency>
    <groupId>com.github.percychuang</groupId>
    <artifactId>modest-core</artifactId>
    <version>0.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.percychuang/modest-core/
implementation 'com.github.percychuang:modest-core:0.0.1'
// https://jarcasting.com/artifacts/com.github.percychuang/modest-core/
implementation ("com.github.percychuang:modest-core:0.0.1")
'com.github.percychuang:modest-core:jar:0.0.1'
<dependency org="com.github.percychuang" name="modest-core" rev="0.0.1">
  <artifact name="modest-core" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.percychuang', module='modest-core', version='0.0.1')
)
libraryDependencies += "com.github.percychuang" % "modest-core" % "0.0.1"
[com.github.percychuang/modest-core "0.0.1"]

Dependencies

compile (23)

Group / Artifact Type Version
com.github.percychuang : modest-log jar 0.0.1
org.springframework : spring-core jar 4.3.13.RELEASE
org.springframework : spring-context jar 4.3.13.RELEASE
org.springframework : spring-context-support jar 4.3.13.RELEASE
org.springframework : spring-aspects jar 4.3.13.RELEASE
org.springframework : spring-aop jar 4.3.13.RELEASE
org.springframework : spring-tx jar 4.3.13.RELEASE
org.springframework : spring-webmvc jar 4.3.13.RELEASE
org.springframework : spring-web jar 4.3.13.RELEASE
org.aspectj : aspectjrt jar 1.8.1
org.aspectj : aspectjweaver jar 1.8.1
org.javassist : javassist jar 3.20.0-GA
commons-collections : commons-collections jar 3.2.1
commons-lang : commons-lang jar 2.6
commons-fileupload : commons-fileupload jar 1.2.2
commons-codec : commons-codec jar 1.9
commons-io : commons-io jar 2.4
commons-net : commons-net jar 3.1
javax.servlet : jstl jar 1.2
com.alibaba : fastjson jar 1.1.41
com.fasterxml.jackson.core : jackson-core jar 2.9.0
com.fasterxml.jackson.core : jackson-databind jar 2.9.0
com.fasterxml.jackson.core : jackson-annotations jar 2.9.0

provided (1)

Group / Artifact Type Version
javax.servlet : javax.servlet-api jar 3.1.0

Project Modules

There are no modules declared in this project.

modest

什么是MODEST?

MODEST是将JAVA项目常用技术进行模块化,规范化,统一约束,组件独立维护的一个大整合。
通过它你可快速构建JAVA WEB、微服务或JAVA普通项目;众多技术代码以组件或工具类形式写好,配置即用。

1.在pom.xml中引入

 <parent>
     <groupId>com.modest</groupId>
     <artifactId>modest-parent</artifactId>
     <version>0.0.1</version>
 </parent>
 <dependency>
     <groupId>com.modest</groupId>
     <artifactId>modest-starter</artifactId>
     <version>0.0.1</version>
 </dependency>

2.在你的spring配置文件中加入

<import resource="classpath*:modest.xml" />
<bean class="com.modest.core.config.ScannerConfigurer">
   	<property name="basePackages">
   		<array>
   			<value>写你dao所在路经</value>
   		</array>
   	</property>
   </bean>

3.在你的src/main/resources下创建conf文件 用于存放properties配置文件

默认在conf下找配置文件,生产环境可配置到任意位置,详见demo

4.在你的src/main/resources下创建sqlmap文件 用于存放mybatis的映射xml文件

5.在你的conf文件下创建任意名字配置文件,里面加入jdbc配置。

 jdbc.write.url=写库地址<br>
 jdbc.write.pool.size.max=50<br>
 jdbc.write.username=xxx<br>
 jdbc.write.password=xxx<br>
 jdbc.write.driverclass=com.mysql.jdbc.Driver<br>
 
 jdbc.read.url=写库地址<br>
 jdbc.read.pool.size.max=50<br>
 jdbc.read.username=xxx<br>
 jdbc.read.password=xxx<br>
 jdbc.read.driverclass=com.mysql.jdbc.Driver<br>

 上面部份配置结束后,你即可以开始操作数据库写业务代码啦,默认支持读写分离。
 详细见simple demo
 后续会上传更多组件和文档。

Versions

Version
0.0.1