auxiconfigact.java

来自「JAVA做的CMS源码」· Java 代码 · 共 38 行

JAVA
38
字号
package com.jeecms.auxiliary.action;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

import com.jeecms.auxiliary.entity.AuxiConfig;
import com.jeecms.auxiliary.manager.AuxiConfigMng;

@SuppressWarnings("serial")
@Scope("prototype")
@Controller("auxiliary.auxiConfigAct")
public class AuxiConfigAct extends com.jeecms.core.JeeCoreAction {
	public String configEdit() {
		this.bean = auxiConfigMng.findById(getWebId());
		return EDIT;
	}

	public String configUpdate() {
		bean.setId(getWebId());
		auxiConfigMng.updateDefault(bean);
		addActionMessage("修改成功");
		return configEdit();
	}

	@Autowired
	private AuxiConfigMng auxiConfigMng;
	private AuxiConfig bean;

	public AuxiConfig getBean() {
		return bean;
	}

	public void setBean(AuxiConfig bean) {
		this.bean = bean;
	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?