spring-3

    8熱度

    1回答

    編程方式進行註銷我有一個彈簧配置註銷像如下: <logout logout-url="/abc/logout" logout-success-url="/abc/login"/> 現在我想以編程方式註銷做。我如何在Spring 3中實現這一點。我需要從我的一個控制器註銷,這個控制器具有下面的def。目前我正在做的事情如下...這是一個好主意..這是一個好主意.. public v

    1熱度

    1回答

    我的下一個綠豆: @Component @ComponentScan("es.pys.model") @Scope(value = WebApplicationContext.SCOPE_SESSION, proxyMode = ScopedProxyMode.TARGET_CLASS) public class Sesion { private Long id; pr

    9熱度

    1回答

    通常我會添加org.springframework.web.filter.DelegatingFilterProxy有這樣一個片斷web.xml中: <filter> <filter-name>springSecurityFilterChain</filter-name> <filter-class> org.springframework.web.filter.D

    0熱度

    1回答

    我正在使用jQuery日期選擇器在UI中提供日期。並提到的日期格式爲 $("#validFrmDt").datepicker({ dateFormat: "dd-mm-yy" }); 下面要求的格式:例如:30-09-2013 ,並在我的Spring MVC模型類我想這種格式與我的java.util.Date屬性進行綁定爲此,我已經配置如下圖所示: @DateTimeFormat(patter

    3熱度

    3回答

    我需要一些幫助來處理下一個主題。 我有豆的層次結構,就像這樣: <bean id="father" class="myPackage.Father" abstract="true"/> <bean id="childA" class="myPackage.ChildA" parent="father"> <property name="atrib1" value="hello">

    1熱度

    1回答

    我正在使用jpa規範的spring hibernate,當我的web應用程序嘗試連接到數據庫時,它給出了上述異常。java.sql.SQLException:訪問被用戶拒絕'sandip'@'localhost'(使用密碼:YES),sandip是我的linux用戶。 數據源集就像....... @Bean public DataSource getDataSource() { Driver

    -2熱度

    1回答

    堆棧跟蹤: org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type [org.vliv.dao.MySqlLogDao] is defined: expected single matching bean but found 2: mySqlLogDaoImpl,my

    0熱度

    1回答

    目前我發展春天3,MyBatis的和Struts2的集成使用MVC architecture.But我面對一些困難,處理事務我application.I使用Spring的事務在我的業務層應用程序,覺得這 服務層 @Service("MyService") @Transactional public class MyServiceImpl implements IMySe

    0熱度

    3回答

    我在春天3 mvc有webapp。這種情況是我有索引頁面的網址,當用戶點擊他們應該顯示另一個頁面的細節選擇的信息。現在顯示詳細信息頁面,但沒有任何信息(在索引頁面上正在創建具有正確變量的模型,但未詳細說明控制器 - 在調試模式下)。 指數控制方法: @RequestMapping(value="/{site}", method = RequestMethod.GET) public String

    0熱度

    1回答

    對於我的應用程序,我使用Struts2,Spring3和JPA。當我使用junit時,它按預期工作,但唯一的問題是用戶定義的異常測試。 用於調用動作形式測試的代碼是 @RunWith(SpringJUnit4ClassRunner.class)來 @ContextConfiguration(位置= { 「類路徑:applicationContext.xml中」})公共類HelloWorldTest