spring-3

    2熱度

    1回答

    我的工作在春季和休眠,我得到這個以下異常對此我無法調試 下面是錯誤堆棧跟蹤: SLF4J:無法加載類「org.slf4j.impl.StaticLoggerBinder 」。 SLF4J:默認爲無操作(NOP)記錄器實現 SLF4J:有關詳細信息,請參閱http://www.slf4j.org/codes.html#StaticLoggerBinder。 2014年10月2日下午7時07分13秒

    1熱度

    1回答

    我在幾張表中插入記錄,即Dept和Emp。如果Dept表成功創建,那麼只需要在Emp表中插入記錄。另外,如果Emp中的任何插入失敗,那麼我想要回滾所有包含從Emp以及Dept表中回滾的事務。 這個我試過用Propagation.REQUIRED如下圖所示: Java文件 public void saveEmployee(Employee empl){ try { jdbcTe

    0熱度

    1回答

    我正在使用Spring 3.2.5.Release和Hibernate 4.2.7.Final。我正在部署Websphere 7服務器。我有兩個應用程序上下文文件,每個都有自己的sessionFactory類型 <bean id="sessionFactory" class="org.springframework.orm.hibernate4.LocalSessionFactoryBe

    0熱度

    1回答

    我使用Maven和JPA 2.1開發了一個使用Spring 3.0的應用程序,並使用maven創建了.war文件。戰爭部署在Jboss7.1上,但是當我試圖訪問URL HTTP:// localhost:9999/project/index.html它下載一個1kb的文件,但沒有調用控制器。 任何幫助將不勝感激。

    6熱度

    3回答

    我與春的Ehcache 工作中已經被緩存我有以下方法 @Override @Cacheable(value="products", key="#root.target.PRODUCTS") public Set<Product> findAll() { return new LinkedHashSet<>(this.productRepository.findAll()); }

    1熱度

    2回答

    我使用SimpleJdbcTemplate與Spring 3.x。爲了得到一個專欄中,我使用下面的代碼,它工作正常: public String selectSingleColumn(int deptId){ return jdbcTemplate.queryForObject("SELECT DEPT_NAME FROM DEPT WHERE DEPT_ID = ?", String.

    1熱度

    1回答

    我在我的應用程序中使用spring 3.2.4,但是其中一些功能像@controllerAdvice一樣無法正常工作。我知道這是在3.2版本中添加的功能。我使用的servlet 2.5.I一派春天有關的3.2,發現 The Spring MVC programming model now provides explicit Servlet 3 async support. 請告訴我春天在什麼作

    1熱度

    1回答

    我正在使用WerbLogic 10.3.5和Spring 3.0來實現JMS隊列。我有以下Spring配置: <!-- JMS Configuration --> <bean id="paymentlistener" class="com.myproject.service.impl.PaymentListener"/> <bean id="paymentlistenerContainer"

    4熱度

    1回答

    兩者有什麼區別?兩種方法都有getParameter方法以及setAttribute方法,那麼兩者之間的區別在哪裏? 1)哪一個更好用? 2)請解釋可以使用它們的具體場景。

    2熱度

    2回答

    我和春天(4.0.5)和Hibernate驗證工作(5.1.2.Final)編碼Hibernate驗證自定義錯誤消息 我已經通過屬性文件工作中的錯誤消息,它也適用於i18n。 它在獨立和測試(JUnit的)環境中,由時刻。我不想包含Web環境,但仍然保持簡單。 我有以下幾點: 對於ValidationMessages_es_PE.properties文件(西班牙文) person.salary.d