NutzCN Logo
问答 IOC service 注入为空
发布于 2569天前 作者 brantroy 1636 次浏览 复制 上一个帖子 下一个帖子
标签:

Service:

package com.jinyatu.chicken.global.service;

import java.util.ArrayList;
import java.util.List;

import org.apache.log4j.Logger;
import org.nutz.dao.Cnd;
import org.nutz.dao.entity.Record;
import org.nutz.ioc.loader.annotation.IocBean;

import com.jinyatu.base.po.Menu;
import com.jinyatu.base.utils.MD5Utils;
import com.jinyatu.chicken.global.base.BaseController;
import com.jinyatu.chicken.global.po.ChickenUser;

@IocBean(name="userService", singleton=false)
public class UserService extends BaseController {

	private Logger logger = Logger.getLogger(getClass());

	public Record queryUserByAccount(String userName, String password) {
		Record recordUser = dao.fetch("sys_user",
				Cnd.where("user_name", "=", userName).and("user_password", "=", MD5Utils.getMD5(password)),
				"user_id,role_id,employee_id,isuse");
		return recordUser;
	}

	public ChickenUser queryUserByUserRecord(Record recordUser) {
		String tableName = "sys_user su LEFT JOIN sys_employee se ON  su.employee_id=se.employee_id "
				+ "LEFT JOIN sys_member sm on se.member_id=sm.member_id "
				+ "LEFT JOIN sys_member_type smt on sm.member_type_id=smt.member_type_id";
		Record userRecord = dao.fetch(tableName, Cnd.where("su.user_id", "=", recordUser.getString("user_id")),
				"se.employee_id,sm.member_regin,sm.member_id,smt.member_type_id");
		ChickenUser user = new ChickenUser();
		user.setEmployeeID(userRecord.getString("employee_id"));
		user.setMemberID(userRecord.getString("member_id"));
		user.setMemberTypeID(userRecord.getString("member_type_id"));
		user.setRoleID(recordUser.getString("role_id"));
		user.setMemberRegin(userRecord.getString("member_regin"));
		user.setUserId(recordUser.getString("user_id"));
		List<Record> rolMenuList = dao.query("role_menu rm LEFT JOIN sys_menu sm on rm.menu_id=sm.menu_id", Cnd
				.where("role_id", "=", recordUser.getString("role_id")).and("sm.isshow", "=", "1").asc("menu_priority"),
				"sm.*");
		List<Menu> menulist = new ArrayList<Menu>();
		for (int i = 0; i < rolMenuList.size(); i++) {
			Menu menu = new Menu(rolMenuList.get(i));
			menulist.add(menu);
		}
		user.setMenu(menulist);
		return user;
	}
}

Controller:

/**
 * 
 * @author oyg 用户登录管理类逻辑
 * 
 * 
 */
@At("/sys")
public class UserAction extends BaseController {

	@Inject
	private UserService userService;

	@At
	@Ok("json")
	public CommRes login(@Param("account") String userName, @Param("password") String password,
			@Param("authCode") String authCode, HttpServletRequest request, HttpServletResponse response) {
		CommRes res = new CommRes();
		if (!examineParam(userName, authCode, password)) {

除了dao,没有任何js配置

21 回复

如果在UserAction上面加上注解@IocBean(fields="userService")这样是可以的,但是如果很多个service,一个个加进去感觉有点难看,注解太长了

dao是BaseController的属性?没加@Inject?

dao可以的,dao是js配置,然后直接inject进去的,这个userService就不行,另外的service一样的写法就可以,很奇怪,另外版本是1.r.62

对了通过mvc去get是可以的

BaseController 里面也有private UserService userService??

没有,刚刚检查了,就这个action里面有userservice

你是不是在js里面也声明了UserAction ?

另外,为啥UserAction和UserService都继承BaseController 呢??

jss就只是有一个dao配置,说到这个继承的混乱确实是很糟,不过我尝试过让userservice不去继承,发现也是注入不了。basectrll中与ioc相关的代码只有一个dao的注入,直接用inject注解去申明,并且是注入成功了的

加个setUserService方法试试

可否告知下注入是在哪里实现的呢,我debug下,tks wendal

加个setUserService方法试试
在setter里面用ioc去get么?还是说在里面做点其他事情

加了个setter,debug没进去

贴启动日志看看

日志里面有显示UserAction的Ioc定义是哪里加载的

@Inject不起作用: 要么走js/xml了, 要么就是没编译了

[2017-11-04 10:36:54:007][org.nutz.resource.Scans.printLocations(Scans.java:521)][DEBUG] Locations count=5 time use 11ms
[2017-11-04 10:36:54:118][org.nutz.resource.Scans.printLocations(Scans.java:521)][DEBUG] Locations count=31 time use 107ms
[2017-11-04 10:36:54:183][org.nutz.castor.Castors.reload(Castors.java:115)][DEBUG] Using 95 castor for Castors
[2017-11-04 10:36:54:201][org.nutz.mvc.config.AbstractNutConfig.createLoading(AbstractNutConfig.java:59)][DEBUG] Loading by class org.nutz.mvc.impl.NutLoading
[2017-11-04 10:36:54:203][org.nutz.mvc.impl.NutLoading.load(NutLoading.java:55)][INFO] Nutz Version : 1.r.61.r2 2017-04-18
[2017-11-04 10:36:54:204][org.nutz.mvc.impl.NutLoading.load(NutLoading.java:56)][INFO] Nutz.Mvc[nutz] is initializing ...
[2017-11-04 10:36:54:205][org.nutz.mvc.impl.NutLoading.load(NutLoading.java:60)][DEBUG] Web Container Information:
[2017-11-04 10:36:54:206][org.nutz.mvc.impl.NutLoading.load(NutLoading.java:61)][DEBUG] - Default Charset : UTF-8
[2017-11-04 10:36:54:206][org.nutz.mvc.impl.NutLoading.load(NutLoading.java:62)][DEBUG] - Current . path : C:\Users\brant\Desktop\developer's tools.
[2017-11-04 10:36:54:206][org.nutz.mvc.impl.NutLoading.load(NutLoading.java:63)][DEBUG] - Java Version : 1.7.0_51
[2017-11-04 10:36:54:206][org.nutz.mvc.impl.NutLoading.load(NutLoading.java:64)][DEBUG] - File separator : \
[2017-11-04 10:36:54:207][org.nutz.mvc.impl.NutLoading.load(NutLoading.java:65)][DEBUG] - Timezone : Asia/Shanghai
[2017-11-04 10:36:54:207][org.nutz.mvc.impl.NutLoading.load(NutLoading.java:66)][DEBUG] - OS : Windows 8 x86
[2017-11-04 10:36:54:207][org.nutz.mvc.impl.NutLoading.load(NutLoading.java:67)][DEBUG] - ServerInfo : Apache Tomcat/7.0.77
[2017-11-04 10:36:54:207][org.nutz.mvc.impl.NutLoading.load(NutLoading.java:68)][DEBUG] - Servlet API : 3.0
[2017-11-04 10:36:54:208][org.nutz.mvc.impl.NutLoading.load(NutLoading.java:73)][DEBUG] - ContextPath : /dome_chicken
[2017-11-04 10:36:54:208][org.nutz.mvc.impl.NutLoading.load(NutLoading.java:74)][DEBUG] - context.tempdir : D:\env\servers\apache-tomcat-7.0.77\work\Catalina\localhost\dome_chicken
[2017-11-04 10:36:54:208][org.nutz.mvc.impl.NutLoading.load(NutLoading.java:75)][DEBUG] - MainModule : com.jinyatu.MainModule
[2017-11-04 10:36:54:208][org.nutz.mvc.impl.NutLoading.createContext(NutLoading.java:235)][DEBUG] >> app.root = D:/env/servers/apache-tomcat-7.0.77/wtpwebapps/dome_chicken
[2017-11-04 10:36:54:211][org.nutz.mvc.impl.NutLoading.createIoc(NutLoading.java:376)][DEBUG] @IocBy(type=org.nutz.mvc.ioc.provider.ComboIocProvider, args=["*org.nutz.ioc.loader.json.JsonLoader", "ioc", "*org.nutz.ioc.loader.annotation.AnnotationIocLoader", "com.jinyatu"],init=[])
[2017-11-04 10:36:54:259][org.nutz.resource.Scans.scan(Scans.java:274)][DEBUG] Found 2 resource by src( ioc ) , regex( ^(.+[.])(js|json)$ )
[2017-11-04 10:36:54:260][org.nutz.ioc.loader.json.JsonLoader.(JsonLoader.java:49)][DEBUG] loading [dao.js] [2017-11-04 10:36:54:267][org.nutz.ioc.loader.json.JsonLoader.(JsonLoader.java:49)][DEBUG] loading [upload.js] [2017-11-04 10:36:54:268][org.nutz.ioc.loader.json.JsonLoader.(JsonLoader.java:57)][DEBUG] Loaded 6 bean define from path=[ioc] --> [dataSource, utils, dao, uploadFileContext, tmpFilePool, myUpload] [2017-11-04 10:36:54:281][org.nutz.resource.Scans.scan(Scans.java:274)][DEBUG] Found 28 resource by src( com/jinyatu/ ) , regex( ^.+[.]class$ )
[2017-11-04 10:36:54:309][org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:74)][DEBUG] Found @IocBean : class com.jinyatu.chicken.global.service.MainService
[2017-11-04 10:36:54:313][org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:74)][DEBUG] Found @IocBean : class com.jinyatu.chicken.global.service.UserService
[2017-11-04 10:36:54:315][org.nutz.ioc.loader.annotation.AnnotationIocLoader.(AnnotationIocLoader.java:50)][INFO] Found 2 classes in 1 base-packages!
beans = ["userService", "mainService"] [2017-11-04 10:36:54:319][org.nutz.ioc.impl.NutIoc.(NutIoc.java:98)][INFO] NutIoc init begin ...
[2017-11-04 10:36:54:321][org.nutz.ioc.impl.NutIoc.(NutIoc.java:115)][INFO] ... NutIoc init complete
[2017-11-04 10:36:54:324][org.nutz.mvc.impl.NutLoading.evalUrlMapping(NutLoading.java:159)][INFO] Build URL mapping by org.nutz.mvc.impl.UrlMappingImpl ...
[2017-11-04 10:36:54:326][org.nutz.mvc.impl.NutLoading.createViewMakers(NutLoading.java:366)][DEBUG] @Views(DefaultViewMaker.class)
[2017-11-04 10:36:54:330][org.nutz.mvc.impl.NutLoading.createChainMaker(NutLoading.java:263)][DEBUG] @ChainBy(org.nutz.mvc.impl.NutActionChainMaker)
[2017-11-04 10:36:54:335][org.nutz.mvc.impl.Loadings.scanModules(Loadings.java:154)][DEBUG] module class location 'file:/D:/env/servers/apache-tomcat-7.0.77/wtpwebapps/dome_chicken/WEB-INF/classes/'
[2017-11-04 10:36:54:336][org.nutz.mvc.impl.Loadings.scanModuleInPackage(Loadings.java:184)][DEBUG] > scan 'com.jinyatu'
[2017-11-04 10:36:54:341][org.nutz.resource.Scans.scan(Scans.java:274)][DEBUG] Found 28 resource by src( com/jinyatu/ ) , regex( ^.+[.]class$ )
[2017-11-04 10:36:54:363][org.nutz.mvc.impl.Loadings.checkModule(Loadings.java:199)][DEBUG] >> add 'com.jinyatu.chicken.global.controller.MainAction'
[2017-11-04 10:36:54:369][org.nutz.mvc.impl.Loadings.checkModule(Loadings.java:199)][DEBUG] >> add 'com.jinyatu.chicken.global.controller.UserAction'
[2017-11-04 10:36:54:388][org.nutz.mvc.impl.processor.ModuleProcessor.init(ModuleProcessor.java:61)][INFO] Create Module obj without Ioc --> class com.jinyatu.chicken.global.controller.MainAction
[2017-11-04 10:36:54:424][org.nutz.mvc.impl.NutActionChainMaker.getProcessorByName(NutActionChainMaker.java:72)][INFO] Optional processor class not found, disabled : org.nutz.integration.shiro.NutShiroProcessor
[2017-11-04 10:36:54:443][org.nutz.mvc.impl.NutActionChainMaker.getProcessorByName(NutActionChainMaker.java:72)][INFO] Optional processor class not found, disabled : org.nutz.plugins.validation.ValidationProcessor
[2017-11-04 10:36:54:471][org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146)][DEBUG] '//main' >> (MainAction.java:47).main : void | @Ok(jsp:/main) @Fail(jsp:/error) | by 1 Filters | (I:UTF-8/O:UTF-8)
[2017-11-04 10:36:54:473][org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146)][DEBUG] '//exitlogin' >> (MainAction.java:35).exitLogin : void | @Ok(jsp:/login) @Fail(jsp:/error) | by 1 Filters | (I:UTF-8/O:UTF-8)
[2017-11-04 10:36:54:474][org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146)][DEBUG] '//systemconfig' >> (MainAction.java:70).systemConfig : void | @Ok(jsp:view.system.system) @Fail(jsp:/error) | by 1 Filters | (I:UTF-8/O:UTF-8)
[2017-11-04 10:36:54:475][org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146)][DEBUG] '//sysmember' >> (MainAction.java:90).sysMember : void | @Ok(jsp:jsp.member.member) @Fail(jsp:/error) | by 1 Filters | (I:UTF-8/O:UTF-8)
[2017-11-04 10:36:54:475][org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146)][DEBUG] '//inputgoodsmanager' >> (MainAction.java:110).inputGoodsManager : void | @Ok(jsp:jsp.inputgoods.inputgoods) @Fail(jsp:/error) | by 1 Filters | (I:UTF-8/O:UTF-8)
[2017-11-04 10:36:54:476][org.nutz.mvc.impl.processor.ModuleProcessor.init(ModuleProcessor.java:61)][INFO] Create Module obj without Ioc --> class com.jinyatu.chicken.global.controller.UserAction
[2017-11-04 10:36:54:498][org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146)][DEBUG] '/sys/login' >> (UserAction.java:43).login : CommRes | @Ok(json ) @Fail(jsp:/error) | by 1 Filters | (I:UTF-8/O:UTF-8)
[2017-11-04 10:36:54:499][org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146)][DEBUG] '/sys/queryuserinfofortop' >> (UserAction.java:78).queryUserInfoForTop : Record | @Ok(json ) @Fail(jsp:/error) | by 1 Filters | (I:UTF-8/O:UTF-8)
[2017-11-04 10:36:54:500][org.nutz.mvc.impl.NutLoading.evalUrlMapping(NutLoading.java:217)][INFO] Found 7 module methods
[2017-11-04 10:36:54:501][org.nutz.mvc.impl.NutLoading.evalLocalization(NutLoading.java:331)][DEBUG] @Localization not define
[2017-11-04 10:36:54:502][org.nutz.mvc.impl.NutLoading.evalSetup(NutLoading.java:271)][INFO] Setup application...
[2017-11-04 10:36:54:524][org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151)][DEBUG] Get 'dao'<class com.jinyatu.base.comm.DaoImpl>
[2017-11-04 10:36:54:527][org.nutz.ioc.aop.SimpleAopMaker.(SimpleAopMaker.java:79)][DEBUG] Load AopConfigure for anno=org.nutz.ioc.aop.Aop by type=org.nutz.ioc.aop.config.impl.AnnotationAopConfigration
[2017-11-04 10:36:54:528][org.nutz.ioc.impl.NutIoc.get(NutIoc.java:177)][DEBUG] >> Load definition name=dao
[2017-11-04 10:36:54:529][org.nutz.ioc.loader.map.MapLoader.load(MapLoader.java:67)][DEBUG] Loading define for name=dao
[2017-11-04 10:36:54:531][org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:161)][DEBUG] Found IocObject(dao) in JsonLoader(paths=[ioc])
[2017-11-04 10:36:54:531][org.nutz.ioc.impl.NutIoc.get(NutIoc.java:209)][DEBUG] >> Make...'dao'<class com.jinyatu.base.comm.DaoImpl>
[2017-11-04 10:36:54:532][org.nutz.ioc.aop.impl.DefaultMirrorFactory.getMirror(DefaultMirrorFactory.java:70)][DEBUG] Load class com.jinyatu.base.comm.DaoImpl without AOP
[2017-11-04 10:36:54:535][org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151)][DEBUG] Get 'dataSource'<>
[2017-11-04 10:36:54:535][org.nutz.ioc.impl.NutIoc.get(NutIoc.java:177)][DEBUG] >> Load definition name=dataSource
[2017-11-04 10:36:54:536][org.nutz.ioc.loader.map.MapLoader.load(MapLoader.java:67)][DEBUG] Loading define for name=dataSource
[2017-11-04 10:36:54:548][org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:161)][DEBUG] Found IocObject(dataSource) in JsonLoader(paths=[ioc])
[2017-11-04 10:36:54:548][org.nutz.ioc.impl.NutIoc.get(NutIoc.java:209)][DEBUG] >> Make...'dataSource'<>
[2017-11-04 10:36:54:553][org.nutz.ioc.aop.impl.DefaultMirrorFactory.getMirror(DefaultMirrorFactory.java:70)][DEBUG] Load class com.jolbox.bonecp.BoneCPDataSource without AOP
[2017-11-04 10:36:54:554][org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:64)][DEBUG] Save object 'dataSource' to [app] [2017-11-04 10:36:54:870][com.jolbox.bonecp.BoneCPConfig.setPassword(BoneCPConfig.java:430)][DEBUG]
===========password to {3DES}+Ab5qmmMuY+8dJIT1rhZzg==
[2017-11-04 10:36:54:871][org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151)][DEBUG] Get 'dataSource'<>
[2017-11-04 10:36:55:032][org.nutz.filepool.NutFilePool.(NutFilePool.java:23)][INFO] Init file-pool by: C:\Users\brant/.nutz/tmp/dao/ [200000] [2017-11-04 10:36:55:033][org.nutz.filepool.NutFilePool.(NutFilePool.java:37)][DEBUG] file-pool.home: 'C:\Users\brant.nutz\tmp\dao'
[2017-11-04 10:36:55:034][org.nutz.filepool.NutFilePool.(NutFilePool.java:66)][INFO] file-pool.cursor: 0
[2017-11-04 10:36:55:142][org.nutz.dao.jdbc.Jdbcs.(Jdbcs.java:90)][DEBUG] Jdbcs init complete
[2017-11-04 10:36:55:142][org.nutz.dao.jdbc.Jdbcs.getExpert(Jdbcs.java:103)][INFO] Get Connection from DataSource for JdbcExpert, if you lock at here, check your database server and configure
[2017-11-04 10:36:55:148][com.jolbox.bonecp.BoneCPDataSource.getConnection(BoneCPDataSource.java:119)][DEBUG] JDBC URL = jdbc:mysql://111.231.195.106:33066/chicken_develop?autoReconnect=true&useUnicode=true&characterEncoding=utf8, Username = jyt_yfb_test, partitions = 3, max (per partition) = 5, min (per partition) = 0, idle max age = 30 min, idle test period = 240 min, strategy = DEFAULT
[2017-11-04 10:36:55:681][org.nutz.dao.impl.DaoSupport.setDataSource(DaoSupport.java:189)][DEBUG] select expert : org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert
[2017-11-04 10:36:55:687][org.nutz.dao.impl.DaoSupport$1.invoke(DaoSupport.java:200)][DEBUG] JDBC Driver --> mysql-connector-java-5.1.39 ( Revision: 3289a357af6d09ecc1a10fd3c26e95183e5790ad )
[2017-11-04 10:36:55:687][org.nutz.dao.impl.DaoSupport$1.invoke(DaoSupport.java:201)][DEBUG] JDBC Name --> MySQL Connector Java
[2017-11-04 10:36:55:687][org.nutz.dao.impl.DaoSupport$1.invoke(DaoSupport.java:203)][DEBUG] JDBC URL --> jdbc:mysql://111.231.195.106:33066/chicken_develop?autoReconnect=true&useUnicode=true&characterEncoding=utf8
[2017-11-04 10:36:55:700][org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert.checkDataSource(MysqlJdbcExpert.java:212)][DEBUG] Mysql : character_set_client=utf8
[2017-11-04 10:36:55:701][org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert.checkDataSource(MysqlJdbcExpert.java:212)][DEBUG] Mysql : character_set_connection=utf8
[2017-11-04 10:36:55:701][org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert.checkDataSource(MysqlJdbcExpert.java:212)][DEBUG] Mysql : character_set_database=utf8
[2017-11-04 10:36:55:701][org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert.checkDataSource(MysqlJdbcExpert.java:212)][DEBUG] Mysql : character_set_filesystem=binary
[2017-11-04 10:36:55:701][org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert.checkDataSource(MysqlJdbcExpert.java:212)][DEBUG] Mysql : character_set_results=
[2017-11-04 10:36:55:702][org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert.checkDataSource(MysqlJdbcExpert.java:212)][DEBUG] Mysql : character_set_server=utf8
[2017-11-04 10:36:55:702][org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert.checkDataSource(MysqlJdbcExpert.java:212)][DEBUG] Mysql : character_set_system=utf8
[2017-11-04 10:36:55:702][org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert.checkDataSource(MysqlJdbcExpert.java:212)][DEBUG] Mysql : character_sets_dir=D:\Program Files\MySQL\MySQL Server 5.1\share\charsets\
[2017-11-04 10:36:55:712][org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert.checkDataSource(MysqlJdbcExpert.java:219)][DEBUG] Mysql : binlog_format=STATEMENT
[2017-11-04 10:36:55:721][org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert.checkDataSource(MysqlJdbcExpert.java:226)][DEBUG] Mysql : database=chicken_develop
[2017-11-04 10:36:55:727][org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert.checkDataSource(MysqlJdbcExpert.java:232)][DEBUG] Mysql : user=jyt_yfb_test@182.139.31.54
[2017-11-04 10:36:55:755][org.nutz.dao.impl.DaoSupport.setDataSource(DaoSupport.java:222)][DEBUG] Database info --> MYSQL:[MySQL - 5.1.68-community]

[2017-11-04 10:36:54:363][org.nutz.mvc.impl.Loadings.checkModule(Loadings.java:199)][DEBUG] >> add 'com.jinyatu.chicken.global.controller.MainAction'
[2017-11-04 10:36:54:369][org.nutz.mvc.impl.Loadings.checkModule(Loadings.java:199)][DEBUG] >> add 'com.jinyatu.chicken.global.controller.UserAction'
[2017-11-04 10:36:54:388][org.nutz.mvc.impl.processor.ModuleProcessor.init(ModuleProcessor.java:61)][INFO] Create Module obj without Ioc --> class com.jinyatu.chicken.global.controller.MainAction
[2017-11-04 10:36:54:424][org.nutz.mvc.impl.NutActionChainMaker.getProcessorByName(NutActionChainMaker.java:72)][INFO] Optional processor class not found, disabled : org.nutz.integration.shiro.NutShiroProcessor
[2017-11-04 10:36:54:443][org.nutz.mvc.impl.NutActionChainMaker.getProcessorByName(NutActionChainMaker.java:72)][INFO] Optional processor class not found, disabled : org.nutz.plugins.validation.ValidationProcessor
[2017-11-04 10:36:54:471][org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146)][DEBUG] '//main' >> (MainAction.java:47).main : void | @Ok(jsp:/main) @Fail(jsp:/error) | by 1 Filters | (I:UTF-8/O:UTF-8)
[2017-11-04 10:36:54:473][org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146)][DEBUG] '//exitlogin' >> (MainAction.java:35).exitLogin : void | @Ok(jsp:/login) @Fail(jsp:/error) | by 1 Filters | (I:UTF-8/O:UTF-8)
[2017-11-04 10:36:54:474][org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146)][DEBUG] '//systemconfig' >> (MainAction.java:70).systemConfig : void | @Ok(jsp:view.system.system) @Fail(jsp:/error) | by 1 Filters | (I:UTF-8/O:UTF-8)
[2017-11-04 10:36:54:475][org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146)][DEBUG] '//sysmember' >> (MainAction.java:90).sysMember : void | @Ok(jsp:jsp.member.member) @Fail(jsp:/error) | by 1 Filters | (I:UTF-8/O:UTF-8)
[2017-11-04 10:36:54:475][org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146)][DEBUG] '//inputgoodsmanager' >> (MainAction.java:110).inputGoodsManager : void | @Ok(jsp:jsp.inputgoods.inputgoods) @Fail(jsp:/error) | by 1 Filters | (I:UTF-8/O:UTF-8)
[2017-11-04 10:36:54:476][org.nutz.mvc.impl.processor.ModuleProcessor.init(ModuleProcessor.java:61)][INFO] Create Module obj without Ioc --> class com.jinyatu.chicken.global.controller.UserAction

Create Module obj without Ioc --> class com.jinyatu.chicken.global.controller.UserAction
这里对不对,Controler不属于IOC管理么?

没声明 @IocBean

来自美丽的 NutzCN

感谢wendal与zozoh两位大神。
我在一楼那里贴代码了,确实添加了iocbean的注解

添加回复
请先登陆
回到顶部