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
6025f45a
Commit
6025f45a
authored
Apr 30, 2014
by
Phillip Webb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish
parent
fb13bf90
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
20 additions
and
17 deletions
+20
-17
HikariDataSourceConfiguration.java
...oot/autoconfigure/jdbc/HikariDataSourceConfiguration.java
+3
-0
production-ready-features.adoc
...oot-docs/src/main/asciidoc/production-ready-features.adoc
+1
-1
SpringTestSampleSimpleApplicationTests.java
...sample/simple/SpringTestSampleSimpleApplicationTests.java
+6
-6
ExecutableArchiveLauncher.java
...pringframework/boot/loader/ExecutableArchiveLauncher.java
+5
-5
JarURLConnection.java
...org/springframework/boot/loader/jar/JarURLConnection.java
+1
-1
SpringApplication.java
...main/java/org/springframework/boot/SpringApplication.java
+4
-4
No files found.
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jdbc/HikariDataSourceConfiguration.java
View file @
6025f45a
...
...
@@ -40,14 +40,17 @@ import com.zaxxer.hikari.HikariDataSource;
*
* @author Dave Syer
* @see DataSourceAutoConfiguration
* @since 1.1.0
*/
@Configuration
public
class
HikariDataSourceConfiguration
extends
AbstractDataSourceConfiguration
{
private
String
dataSourceClassName
;
private
String
username
;
private
HikariDataSource
pool
;
private
Properties
hikari
=
new
Properties
();
@Bean
(
destroyMethod
=
"shutdown"
)
...
...
spring-boot-docs/src/main/asciidoc/production-ready-features.adoc
View file @
6025f45a
...
...
@@ -597,7 +597,7 @@ decrement). Metrics for all HTTP requests are automatically recorded, so if you
Here we can see basic `memory`, `heap`, `class loading`, `processor` and `thread pool`
information along with some HTTP metrics. In this instance the `root` (``/'') and `/metrics`
URLs have returned `HTTP 200` responses `20` and `3` times respectively. It also appears
URLs have returned `HTTP 200` responses `20` and `3` times respectively. It also appears
that the `root` URL returned `HTTP 401` (unauthorized) `4` times.
The `gauge` shows the last response time for a request. So the last request to `root` took
...
...
spring-boot-samples/spring-boot-sample-simple/src/test/java/sample/simple/SpringTestSampleSimpleApplicationTests.java
View file @
6025f45a
...
...
@@ -16,9 +16,6 @@
package
sample
.
simple
;
import
static
org
.
junit
.
Assert
.
assertNotNull
;
import
static
org
.
junit
.
Assert
.
assertTrue
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
@@ -26,6 +23,9 @@ import org.springframework.boot.test.SpringApplicationConfiguration;
import
org.springframework.context.ApplicationContext
;
import
org.springframework.test.context.junit4.SpringJUnit4ClassRunner
;
import
static
org
.
junit
.
Assert
.
assertNotNull
;
import
static
org
.
junit
.
Assert
.
assertTrue
;
/**
* Tests for {@link SampleSimpleApplication}.
*
...
...
@@ -40,9 +40,9 @@ public class SpringTestSampleSimpleApplicationTests {
@Test
public
void
testContextLoads
()
throws
Exception
{
assertNotNull
(
ctx
);
assertTrue
(
ctx
.
containsBean
(
"helloWorldService"
));
assertTrue
(
ctx
.
containsBean
(
"sampleSimpleApplication"
));
assertNotNull
(
this
.
ctx
);
assertTrue
(
this
.
ctx
.
containsBean
(
"helloWorldService"
));
assertTrue
(
this
.
ctx
.
containsBean
(
"sampleSimpleApplication"
));
}
}
spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/ExecutableArchiveLauncher.java
View file @
6025f45a
...
...
@@ -101,19 +101,19 @@ public abstract class ExecutableArchiveLauncher extends Launcher {
}
private
static
ClassLoader
getDefaultClassLoader
()
{
ClassLoader
cl
=
null
;
ClassLoader
cl
assloader
=
null
;
try
{
cl
=
Thread
.
currentThread
().
getContextClassLoader
();
cl
assloader
=
Thread
.
currentThread
().
getContextClassLoader
();
}
catch
(
Throwable
ex
)
{
// Cannot access thread context ClassLoader - falling back to system class
// loader...
}
if
(
cl
==
null
)
{
if
(
cl
assloader
==
null
)
{
// No thread context class loader -> use class loader of this class.
cl
=
ExecutableArchiveLauncher
.
class
.
getClassLoader
();
cl
assloader
=
ExecutableArchiveLauncher
.
class
.
getClassLoader
();
}
return
cl
;
return
cl
assloader
;
}
}
spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/jar/JarURLConnection.java
View file @
6025f45a
...
...
@@ -27,7 +27,7 @@ import java.util.jar.Manifest;
/**
* {@link java.net.JarURLConnection} used to support {@link JarFile#getUrl()}.
*
*
* @author Phillip Webb
*/
class
JarURLConnection
extends
java
.
net
.
JarURLConnection
{
...
...
spring-boot/src/main/java/org/springframework/boot/SpringApplication.java
View file @
6025f45a
...
...
@@ -459,7 +459,6 @@ public class SpringApplication {
* content from the Environment (banner.location and banner.charset). The defaults are
* banner.location=classpath:banner.txt, banner.charest=UTF-8. If the banner file does
* not exist or cannot be printed, a simple default is created.
*
* @see #setShowBanner(boolean)
* @see #printBanner()
*/
...
...
@@ -476,9 +475,9 @@ public class SpringApplication {
Charset
.
forName
(
"UTF-8"
))));
return
;
}
catch
(
Exception
e
)
{
System
.
out
.
println
(
"Banner not printable: "
+
resource
+
" ("
+
e
.
getClass
()
+
": '"
+
e
.
getMessage
()
+
"')"
);
catch
(
Exception
e
x
)
{
this
.
log
.
warn
(
"Banner not printable: "
+
resource
+
" ("
+
ex
.
getClass
()
+
": '"
+
ex
.
getMessage
()
+
"')"
,
ex
);
}
}
printBanner
();
...
...
@@ -488,6 +487,7 @@ public class SpringApplication {
* Print a simple banner message to the console. Subclasses can override this method
* to provide additional or alternative banners.
* @see #setShowBanner(boolean)
* @see #printBanner(Environment)
*/
protected
void
printBanner
()
{
Banner
.
write
(
System
.
out
);
...
...
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