1.0.0 • Published 2 years ago

spring-sqlite3-orm v1.0.0

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

spring-sqlite3-orm

intruoduce

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

install

npm instlal spring-sqlite3-orm

usage

1.set the configuration file
file path: ${Project}/resource/app-dev.yaml
basic config:
Spring-ioc:
  log:
    state: on
    level: info
SpringSqlite3Orm:
  msg: "Hello world. yq!"

2. load email module at launch.

const {SpringBoot} = require("spring-ioc")
const {SpringSqlite3OrmScaner} = require("./spring_extends")


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

3. call in the spring container!

//@SpringBoot
class Application {

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

	async main(){

		this.springSqlite3Orm.say();

	}

}