spring-jdbc Questions
4
Solved
I have a spring-boot application on the same host as the Maria DB and both are running fine for some time. But between 12 hours and 2 days it seems that the spring boot application looses the conne...
Cureton asked 19/2, 2015 at 15:0
0
I have been trying to get Quartz to work while using R2DBC in spring boot. So far, I have not figured out how to do this. This is because when a JDBC DataSource is created, it tries to initialize m...
Zora asked 19/5, 2020 at 7:21
8
Solved
To implement data access code in our application we need some framework to wrap around jdbc (ORM is not our choice, because of scalability).
The coolest framework I used to work with is Spring-Jdb...
Penny asked 18/11, 2008 at 18:3
2
I need to build a spring boot application which exposes a REST endpoint to export a huge database table as CSV file with different filter parameters. I am trying to find an efficient solution to th...
Responsion asked 6/7, 2019 at 5:23
5
Solved
I am using below code while inserting a row into database(oracle 10g xe,jar: ojdbc14.jar)
String sql = "INSERT INTO SPONSOR_TB(ID,NAME,INDUSTRY_TYPE,IS_REPORTING_SPONSOR,IS_NOT_SOLICITE) VALUES(SE...
Caffrey asked 28/9, 2013 at 16:35
4
Solved
The question is about the best practice usage for RowMapper in master/detail scenarios where we want to eagerly fetch details using spring jdbc.
Assume that we have both Invoice and InvoiceLine cl...
Subscription asked 12/7, 2012 at 15:26
3
Setup
I have an app using Spring 4.3, JdbcTemplate, Hibernate 5 and MySQL 8. I have implemented multitenancy in hibernate per schema where i switch schemas using using hibernates multitenancy mech...
Messiaen asked 27/9, 2018 at 16:26
6
Solved
I want to know what actually happens when you annotate a method with @Transactional?
Of course, I know that Spring will wrap that method in a Transaction.
But, I have the following doubts:
I hea...
Winthorpe asked 8/7, 2009 at 16:2
1
I am passing parameters to Query using NamedParameterJdbcTemplate . But am getting trace details as a warning and parameter binding is not showing.Main problem for is it is showing the executing sq...
Viewy asked 7/3, 2018 at 7:16
6
Solved
I have my application.properties set up like this :
spring.datasource.username = root
spring.datasource.password = root
spring.datasource.url = jdbc:mysql://localhost:3306/dbname?useUnicode=yes&am...
Focus asked 16/6, 2017 at 11:23
2
Solved
I'm trying to connect to MySql (=MariaDB) on the localhost (lets call it A) from a tomcat webapp using Hibernate, but keep getting Communication link failure (the full exception trace attached belo...
Azotobacter asked 11/10, 2017 at 13:30
9
Hi I'm trying to use HikariCP with Spring for connection pool. I'm using jdbcTempLate and JdbcdaoSupport.
This is my spring configuration file for datasource:
<bean id="dataSource" class="com....
Gavelkind asked 19/4, 2014 at 16:38
1
Solved
I'm executing the following query using NamedParameterJdbcTemplate with a single parameter.
DDL For Table
create table TEST_TRANS
(
DESCRIPTION_2 float,
AMOUNT_STR varchar(255),
DESCRIPTION va...
Malaspina asked 29/8, 2019 at 18:49
3
Solved
I made this simple application to connect to the MySQL database and I'm getting this error:
org.springframework.jdbc.core.JdbcTemplate
In my configuration (com.kubamadry.dao.MySqlStudentDao):...
Ritualism asked 14/7, 2018 at 19:25
5
Solved
We are developing microservices using java (Spring and Spring Boot), and the access to our Oracle DB is done via the JDBC Oracle Driver.
The problem is that our DBAs can only see on the Oracle sid...
Quality asked 30/4, 2018 at 7:15
4
I am configuring an OAuth2 authorization server in a Spring project. Here is configuration.
@Override
public void configure(ClientDetailsServiceConfigurer clients)
throws Exception {
clients....
Gage asked 20/10, 2016 at 12:28
1
I am looking for a way to intercept the connection that JDBCTemplate creates internally i.e. the connection that is created when the function getConnection() is called by JDBCTemplate.
ex: if I u...
Gleiwitz asked 23/6, 2017 at 5:16
1
To make best use of the java8 stream and Spring4, I use the Stream API as follows on a JDBC resultSet that comes from Springs jsdbRestTemplate (code shortened and simplified):
public <T&g...
Lei asked 5/7, 2019 at 6:21
2
How can I connect to multiple databases which are non-identical on the fly (loading the type and connection info of the DB from my DB) using Spring?
what I am trying to build?
I am building a Spri...
Kurland asked 2/7, 2019 at 10:20
1
Solved
I have the following method that I use with Spring JDBC
public String getState() {
String stateLink = template.queryForObject(
"select state_url from state_scrape_queue where in_use = false ORDE...
Relieve asked 28/5, 2019 at 22:28
4
Solved
I am trying to use two datasources with my SpringBoot application and can't get the second datasource to autowire. I have tried many things but this is the closest I have come:
My Yaml file:
spri...
Measurable asked 17/5, 2016 at 23:13
4
Solved
I am trying log SQL queries with params for Spring Boot JDBC but it is not printing the details in log.I am using Spring Boot 1.5.8 version.Please help me to solve this.
application.properties:
s...
Iguana asked 2/3, 2018 at 11:29
2
Solved
I have a Spring data repository:
@Repository
interface SomeRepository extends CrudRepository<Entity, Long> {
Stream<Entity> streamBySmth(String userId);
}
I am calling that method i...
Unrepair asked 7/12, 2016 at 11:5
2
Solved
In Spring, what is the difference between using DriverManagerDataSource and SimpleDriverDataSource for creating a new datasource given its driverClassName, url, username and password?
For example ...
Volute asked 20/3, 2019 at 10:5
2
Can someone point out any mistake in my following code of Spring Jdbc Template?
When I click delete, the record is not getting deleted and there are no errors showing.
public void delete(String id)...
Psephology asked 15/8, 2013 at 19:9
© 2022 - 2024 — McMap. All rights reserved.