2.为什么要是用Spring:manager

package com.bjpowernode.spring.manager;

public interface UserManager {

	public void addUser(String username, String password);
}
package com.bjpowernode.spring.manager;

import com.bjpowernode.spring.dao.UserDao;
import com.bjpowernode.spring.dao.UserDao4MySqlImpl;
import com.bjpowernode.spring.dao.UserDao4OracleImpl;

public class UserManagerImpl implements UserManager {

	public void addUser(String username, String password) {
		
		//由我们的应用程序负责服务(对象)定位
		//UserDao userDao = new UserDao4MySqlImpl();
		UserDao userDao = new UserDao4OracleImpl();
		userDao.addUser(username, password);
	}

}


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
de.schlichtherle.license.LicenseContentException: exc.licenseHasExpired at de.schlichtherle.license.LicenseManager.validate(LicenseManager.java:629) at com.keyunzhihui.auth.license.CustomLicenseManager.validate(CustomLicenseManager.java:101) at com.keyunzhihui.auth.license.CustomLicenseManager.install(CustomLicenseManager.java:83) at de.schlichtherle.license.LicenseManager.install(LicenseManager.java:406) at de.schlichtherle.license.LicenseManager.install(LicenseManager.java:382) at com.keyunzhihui.auth.license.LicenseVerify.install(LicenseVerify.java:44) at com.keyunzhihui.auth.license.LicenseVerify.install(LicenseVerify.java:33) at com.keyunzhihui.auth.listener.LicenseRunListener.onApplicationStartEvent(LicenseRunListener.java:59) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.context.event.ApplicationListenerMethodAdapter.doInvoke(ApplicationListenerMethodAdapter.java:344) at org.springframework.context.event.ApplicationListenerMethodAdapter.processEvent(ApplicationListenerMethodAdapter.java:229) at org.springframework.context.event.ApplicationListenerMethodAdapter.onApplicationEvent(ApplicationListenerMethodAdapter.java:166) at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:176) at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:169) at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:143) at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:421) at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:378) at org.springframework.boot.context.event.EventPublishingRunListener.started(EventPublishingRunListener.java:105) at org.springframework.boot.SpringApplicationRunListeners.lambda$started$5(SpringApplicationRunListeners.java:75) at java.util.ArrayList.forEach(ArrayList.java:1259) at org.springframework.boot.SpringApplicationRunListeners.doWithListeners(SpringApplicationRunListeners.java:117) at org.springframework.boot.SpringApplicationRunListeners.doWithListeners(SpringApplicationRunListeners.java:111) at org.springframework.boot.SpringApplicationRunListeners.started(SpringApplicationRunListeners.java:75) at org.springframework.boot.SpringApplication.run(SpringApplication.java:345) at org.springframework.boot.SpringApplication.run(SpringApplication.java:1329) at org.springframework.boot.SpringApplication.run(SpringApplication.java:1318) at com.kyzh.business.doorlock.DoorLockServiceApplication.main(DoorLockServiceApplication.java:42)
最新发布
07-08

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值