1.0.5 • Published 2 years ago

spring-mvc-template v1.0.5

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

spring-extends-template

intruoduce

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

install

npm instlal spring-extends-template

usage

1.set the configuration file
file path: ${Project}/resource/TemplateBean.json
basic config:
{
	"msg":"hello world"
}

2. load email module at launch.

const {SpringBoot} = require("spring-ioc")
const {TemplateBeanScaner} = require("spring-extends-template")

new SpringBoot({
	srcList:["./app"],
	moduleList:[TemplateBeanScaner]
}).run();

3. call in the spring container!

//@SpringBoot
class Application {

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

	async main(){

		this.templateBean.say();

	}

}