1.0.1 • Published 2 years ago

j-spring-sqlite3-jdbc v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

j-spring-sqlite3-jdbc

intruoduce

  1. zhice teamson company development this module and all right reserved!
  2. attention ! just suport the j-spring framework.

install

npm instlal j-spring-sqlite3-jdbc

usage

1.set the configuration file
file path: ${Project}/resource/app-dev.yaml
basic config:
j-spring:
  log:
    state: on
    level: debug
j-spring-sqlite3-jdbc:
  dbFile: ./data.db #不强制

2. load email module at launch.

const {SpringBoot} = require("j-spring")
const {JSpringSqlite3JdbcScaner} = require("./spring_extends")


new SpringBoot({
	rootPath:__dirname,
	srcList:["./demo"],
	moduleList:[JSpringSqlite3JdbcScaner("./spring_extends")]
}).start();

3. call in the spring container!

//@SpringBoot
class Application {

	//just copy the code of next line is done!
	//@Autowired
	jSpringSqlite3Jdbc;

	async main(){

		this.jSpringSqlite3Jdbc.say();

	}

}