Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 69e4956

Browse files
update server port to 5000
1 parent 0913073 commit 69e4956

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

‎spring/src/main/kotlin/com/fractalwrench/json2kotlin/App.kt‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,16 @@ package com.fractalwrench.json2kotlin
22

33
import org.springframework.boot.SpringApplication
44
import org.springframework.boot.autoconfigure.SpringBootApplication
5+
import org.springframework.boot.builder.SpringApplicationBuilder
6+
import org.springframework.boot.web.support.SpringBootServletInitializer
57

68
@SpringBootApplication
7-
class Application
9+
class Application: SpringBootServletInitializer() {
10+
override fun configure(application: SpringApplicationBuilder): SpringApplicationBuilder {
11+
return application.sources(Application::class.java)
12+
}
13+
}
814

915
fun main(args: Array<String>) {
1016
SpringApplication.run(Application::class.java, *args)
11-
}
17+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
server.port=5000

‎spring/src/main/resources/templates/conversion.html‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<body>
2727
<div class="container" style="text-align:center">
2828
<div class="j2kcontainer">
29-
<h1>Convert JSON to Kotlin Data Class</h1>
29+
<h1id="home">Convert JSON to Kotlin Data Class</h1>
3030
<form id="jsonForm" action="#" th:action="@{/}" th:object="${conversionForm}"
3131
method="post" onsubmit="return validateForm()">
3232
<textarea maxlength="10000" placeholder="Paste JSON here..." th:field="*{json}"></textarea>
@@ -47,7 +47,8 @@ <h2 id="results">Generated Kotlin</h2>
4747

4848
</div>
4949
<div class="j2kcontainer">
50-
<!-- TODO -->
50+
<h2 id="about">About</h2>
51+
<p>TODO WORDS from README, link to blog post, github, twitter</p>
5152
</div>
5253
</div>
5354
<footer>
@@ -85,4 +86,3 @@ <h2 id="results">Generated Kotlin</h2>
8586
</body>
8687
</html>
8788
<!-- TODO GA -->
88-
<!-- TODO link to GH -->

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /