Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
c8079b60
Commit
c8079b60
authored
Aug 20, 2013
by
Phillip Webb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update trace logging to include Hibernate SQL
parent
d4a7720a
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
113 additions
and
112 deletions
+113
-112
HibernateJpaAutoConfiguration.java
.../autoconfigure/orm/jpa/HibernateJpaAutoConfiguration.java
+1
-1
import.sql
...spring-boot-sample-data-jpa/src/main/resources/import.sql
+111
-111
LoggingApplicationContextInitializer.java
...ext/initializer/LoggingApplicationContextInitializer.java
+1
-0
No files found.
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaAutoConfiguration.java
View file @
c8079b60
...
@@ -57,7 +57,7 @@ public class HibernateJpaAutoConfiguration extends JpaBaseConfiguration {
...
@@ -57,7 +57,7 @@ public class HibernateJpaAutoConfiguration extends JpaBaseConfiguration {
@Value
(
"${spring.jpa.database:DEFAULT}"
)
@Value
(
"${spring.jpa.database:DEFAULT}"
)
private
Database
database
=
Database
.
DEFAULT
;
private
Database
database
=
Database
.
DEFAULT
;
@Value
(
"${spring.jpa.showSql:${spring.jpa.show_sql:
fals
e}}"
)
@Value
(
"${spring.jpa.showSql:${spring.jpa.show_sql:
tru
e}}"
)
private
boolean
showSql
;
private
boolean
showSql
;
@Value
(
"${spring.jpa.ddlAuto:${spring.jpa.ddl_auto:none}}"
)
@Value
(
"${spring.jpa.ddlAuto:${spring.jpa.ddl_auto:none}}"
)
...
...
spring-boot-samples/spring-boot-sample-data-jpa/src/main/resources/import.sql
View file @
c8079b60
This diff is collapsed.
Click to expand it.
spring-boot/src/main/java/org/springframework/boot/context/initializer/LoggingApplicationContextInitializer.java
View file @
c8079b60
...
@@ -89,6 +89,7 @@ public class LoggingApplicationContextInitializer implements
...
@@ -89,6 +89,7 @@ public class LoggingApplicationContextInitializer implements
LOG_LEVEL_LOGGERS
.
add
(
LogLevel
.
TRACE
,
"org.springframework"
);
LOG_LEVEL_LOGGERS
.
add
(
LogLevel
.
TRACE
,
"org.springframework"
);
LOG_LEVEL_LOGGERS
.
add
(
LogLevel
.
TRACE
,
"org.apache.tomcat"
);
LOG_LEVEL_LOGGERS
.
add
(
LogLevel
.
TRACE
,
"org.apache.tomcat"
);
LOG_LEVEL_LOGGERS
.
add
(
LogLevel
.
TRACE
,
"org.eclipse.jetty"
);
LOG_LEVEL_LOGGERS
.
add
(
LogLevel
.
TRACE
,
"org.eclipse.jetty"
);
LOG_LEVEL_LOGGERS
.
add
(
LogLevel
.
TRACE
,
"org.hibernate.tool.hbm2ddl"
);
}
}
private
final
Log
logger
=
LogFactory
.
getLog
(
getClass
());
private
final
Log
logger
=
LogFactory
.
getLog
(
getClass
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment