spring

    2热度

    1回答

    我试图将DataSource配置迁移到Spring Boot属性文件(我们最近将旧的Spring应用程序迁移到Spring Boot),但我在定义所有必需属性时遇到了问题。我试图按照所有的documentation,但我仍然显然失去了一些东西。 这是一个@Configuration文件中的初始数据源定义: @Bean public DataSource dataSource() { f

    2热度

    1回答

    我想改变我如何应用访问卡桑德拉分贝。我用的是弹簧数据卡桑德拉但由于它不支持UDT和其他的东西我已经决定使用与DAO模式datastax驱动程序。 但我有一些问题,psring未初始化豆datastax司机,我不知道哪里是错误的。 这是错误: Caused by: org.springframework.beans.factory.BeanCreationException: Could not a

    1热度

    1回答

    的同事,我有主类,它看起来像: public class App { static final Logger LOG = Logger.getLogger(App.class.getName()); public static void main(String[] args) { for(int i = 0; i < args.length; i++) {

    0热度

    1回答

    我对spring引导代码有问题。我想了解与@Transactional注释隔离级别,并给出验证码: //BookingService class bookingService2 instance @Transactional(isolation = Isolation.REPEATABLE_READ) public String readConstantly() throws

    1热度

    1回答

    使用@Async时出现spring + hibernate multitenancy问题:当前租户无法解析,因为它存储在不会继承到线程的ThreadLocal(由某个TaskExecutor提供)。在这个领域的任何经验? 提前致谢! Erwin

    3热度

    1回答

    我试图将基于注解的配置转换为基于XMl。请不要问我为什么要这样做。原则上这成了。 Java类: package org.cloudjumper.configs; import org.hibernate.jpa.HibernatePersistenceProvider; import org.springframework.context.annotation.*; import org.

    0热度

    1回答

    我有一个弹簧启动应用程序。我使用休息架构。 我有这个方法。 @RequestMapping(value = "/members/card/{cardId}", method = RequestMethod.HEAD) public ResponseEntity hasCardIdValid(@PathVariable(value = "cardId") String cardId) {

    2热度

    2回答

    我正在尝试为sendind邮件开发spring启动应用程序。一切都好但是,在模板百里香,当我尝试添加图像时显示错误。 这是我template.html <!DOCTYPE html> <html xmlns:th="http://www.thymeleaf.org"> <head> <title th:remove="all">Order Confirmation</title>

    1热度

    2回答

    这里我想在30 doen之前进行注销。我想在DataBase中存储注销时间。如何在java.Here中维护会话是我的控制器方法在注销之前执行的。 @RequestMapping(value="/logout") public String showLoggedout(HttpServletRequest request,HttpSession session){ UserI

    -1热度

    2回答

    我创建了一个Spring Boot应用程序,并在/resources/static文件夹中有我的前端应用程序。 对于路由,我使用Angular JS UI路由器库。 我已经定义了一个路由,我只想访问管理员,现在我试图使用Spring Security来保护它。 这里是我WebSecurity配置类: @Configuration @EnableWebSecurity @EnableGlobal