⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 auxiconfigact.java

📁 JAVA做的CMS源码
💻 JAVA
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -