摘要:
动物叫 阅读全文
摘要:
import javax.annotation.Resource;import org.junit.Test;import org.springframework.context.annotation.Configuration;import org.springframework.test.context.ContextConfiguration;import org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests;import com.bjsxt.spring30.model.User;@Contex 阅读全文
摘要:
SettingsThe following settings can be customized. See thedeveloper guide.SettingDescriptionDefaultPossible Valuesstruts.objectFactory.spring.autoWireThe autowire strategynamename,type,auto, orconstructorstruts.objectFactory.spring.autoWire.alwaysRespectWhether the autowire strategy should always be 阅读全文
摘要:
AspectJ中使用CGLIB在spring中,当对没有实现接口的类使用aspect的时候,可以使用CGLIB,写道@Aspect@Component("updateInvocationDefinitionSource")public class UpdateInvocationDefinitionSource { @AfterReturning("execution(* com.mawujun.facade.MenuManager.save(..))") public void saveMenu() throws Exception{ System.o 阅读全文
摘要:
HibernateTemplate利用模板设计模式,可将重复的opensession getcurrentsession工作省去,只将必要操作执行即可,其它的由spring来帮我们处理。 ... 阅读全文
摘要:
声明事务可以省去手动添加事务以及异常处理的麻烦。注解方式: --> classpath:jdbc.properties com.bjsxt.model.User com.bjsxt.model.Log org.hibernate.dialect.MySQLDialect true ... 阅读全文
摘要:
记得导入dbcp和pool的jar包。 --> classpath:jdbc.prop... 阅读全文
摘要:
Spring 配置中的 ${} classpath:spring/jdbc-oracle.properties ${jdbc.driverClassName} ${jdbc.url} ${jdbc.username} ${jdbc.password} 当jdbc-oracle.properties文件加... 阅读全文