health & log
health & log
This commit is contained in:
@@ -0,0 +1,92 @@
|
|||||||
|
INFO 2023-08-07 20:18:44.163 [-main][*][o.noear.solon.Solon]:
|
||||||
|
App: Start loading
|
||||||
|
INFO 2023-08-07 20:18:44.175 [-Solon-executor-1][*][o.noear.solon.Solon]:
|
||||||
|
Logging: console {level=TRACE, enable=true}
|
||||||
|
INFO 2023-08-07 20:18:44.203 [-main][*][o.noear.solon.Solon]:
|
||||||
|
App: Plugin starting
|
||||||
|
INFO 2023-08-07 20:18:44.315 [-main][*][o.noear.solon.Solon]:
|
||||||
|
View: load: BeetlRender
|
||||||
|
INFO 2023-08-07 20:18:44.316 [-main][*][o.noear.solon.Solon]:
|
||||||
|
View: load: org.noear.solon.view.beetl.BeetlRender
|
||||||
|
INFO 2023-08-07 20:18:44.316 [-main][*][o.noear.solon.Solon]:
|
||||||
|
View: mapping: .htm=BeetlRender
|
||||||
|
INFO 2023-08-07 20:18:44.317 [-main][*][o.noear.solon.Solon]:
|
||||||
|
View: mapping: .btl=BeetlRender
|
||||||
|
INFO 2023-08-07 20:18:44.326 [-main][*][o.noear.solon.Solon]:
|
||||||
|
App: Bean scanning
|
||||||
|
INFO 2023-08-07 20:18:44.352 [-main][*][o.noear.solon.Solon]:
|
||||||
|
View: mapping: @json=StringSerializerRender#SnackSerializer
|
||||||
|
INFO 2023-08-07 20:18:44.352 [-main][*][o.noear.solon.Solon]:
|
||||||
|
View: mapping: @type_json=StringSerializerRender#SnackSerializer
|
||||||
|
INFO 2023-08-07 20:18:44.365 [-main][*][o.noear.solon.Solon]:
|
||||||
|
Connector:main: jlhttp: Started ServerConnector@{HTTP/1.1,[http/1.1]}{http://localhost:80}
|
||||||
|
INFO 2023-08-07 20:18:44.365 [-main][*][o.noear.solon.Solon]:
|
||||||
|
Server:main: jlhttp: Started (jlhttp 2.6/2.4.2) @10ms
|
||||||
|
INFO 2023-08-07 20:18:44.366 [-main][*][o.noear.solon.Solon]:
|
||||||
|
App: End loading elapsed=838ms pid=28784 v=2.4.2
|
||||||
|
INFO 2023-08-07 20:21:20.710 [-Thread-2][*][o.noear.solon.Solon]:
|
||||||
|
Server:main: jlhttp: Has Stopped (jlhttp 2.6/2.4.2)
|
||||||
|
INFO 2023-08-07 20:21:27.896 [-main][*][o.noear.solon.Solon]:
|
||||||
|
App: Start loading
|
||||||
|
INFO 2023-08-07 20:21:27.912 [-Solon-executor-1][*][o.noear.solon.Solon]:
|
||||||
|
Logging: console {level=TRACE, enable=true}
|
||||||
|
INFO 2023-08-07 20:21:27.946 [-main][*][o.noear.solon.Solon]:
|
||||||
|
App: Plugin starting
|
||||||
|
INFO 2023-08-07 20:21:28.195 [-main][*][o.noear.solon.Solon]:
|
||||||
|
View: load: BeetlRender
|
||||||
|
INFO 2023-08-07 20:21:28.198 [-main][*][o.noear.solon.Solon]:
|
||||||
|
View: load: org.noear.solon.view.beetl.BeetlRender
|
||||||
|
INFO 2023-08-07 20:21:28.198 [-main][*][o.noear.solon.Solon]:
|
||||||
|
View: mapping: .htm=BeetlRender
|
||||||
|
INFO 2023-08-07 20:21:28.198 [-main][*][o.noear.solon.Solon]:
|
||||||
|
View: mapping: .btl=BeetlRender
|
||||||
|
INFO 2023-08-07 20:21:28.213 [-main][*][o.noear.solon.Solon]:
|
||||||
|
App: Bean scanning
|
||||||
|
INFO 2023-08-07 20:21:28.260 [-main][*][o.noear.solon.Solon]:
|
||||||
|
View: mapping: @json=StringSerializerRender#SnackSerializer
|
||||||
|
INFO 2023-08-07 20:21:28.261 [-main][*][o.noear.solon.Solon]:
|
||||||
|
View: mapping: @type_json=StringSerializerRender#SnackSerializer
|
||||||
|
INFO 2023-08-07 20:21:28.282 [-main][*][o.noear.solon.Solon]:
|
||||||
|
Connector:main: jlhttp: Started ServerConnector@{HTTP/1.1,[http/1.1]}{http://localhost:80}
|
||||||
|
INFO 2023-08-07 20:21:28.283 [-main][*][o.noear.solon.Solon]:
|
||||||
|
Server:main: jlhttp: Started (jlhttp 2.6/2.4.2) @16ms
|
||||||
|
INFO 2023-08-07 20:21:28.285 [-main][*][o.noear.solon.Solon]:
|
||||||
|
App: End loading elapsed=1027ms pid=32548 v=2.4.2
|
||||||
|
INFO 2023-08-07 20:21:30.257 [-Thread-2][*][o.noear.solon.Solon]:
|
||||||
|
Server:main: jlhttp: Has Stopped (jlhttp 2.6/2.4.2)
|
||||||
|
INFO 2023-08-07 20:21:35.121 [-main][*][o.noear.solon.Solon]:
|
||||||
|
App: Start loading
|
||||||
|
INFO 2023-08-07 20:21:35.135 [-Solon-executor-1][*][o.noear.solon.Solon]:
|
||||||
|
Logging: console {level=TRACE, enable=true}
|
||||||
|
INFO 2023-08-07 20:21:35.160 [-main][*][o.noear.solon.Solon]:
|
||||||
|
App: Plugin starting
|
||||||
|
INFO 2023-08-07 20:21:35.266 [-main][*][o.noear.solon.Solon]:
|
||||||
|
View: load: BeetlRender
|
||||||
|
INFO 2023-08-07 20:21:35.266 [-main][*][o.noear.solon.Solon]:
|
||||||
|
View: load: org.noear.solon.view.beetl.BeetlRender
|
||||||
|
INFO 2023-08-07 20:21:35.266 [-main][*][o.noear.solon.Solon]:
|
||||||
|
View: mapping: .htm=BeetlRender
|
||||||
|
INFO 2023-08-07 20:21:35.266 [-main][*][o.noear.solon.Solon]:
|
||||||
|
View: mapping: .btl=BeetlRender
|
||||||
|
INFO 2023-08-07 20:21:35.275 [-main][*][o.noear.solon.Solon]:
|
||||||
|
App: Bean scanning
|
||||||
|
INFO 2023-08-07 20:21:35.312 [-main][*][o.noear.solon.Solon]:
|
||||||
|
View: mapping: @json=StringSerializerRender#SnackSerializer
|
||||||
|
INFO 2023-08-07 20:21:35.312 [-main][*][o.noear.solon.Solon]:
|
||||||
|
View: mapping: @type_json=StringSerializerRender#SnackSerializer
|
||||||
|
INFO 2023-08-07 20:21:35.330 [-main][*][o.noear.solon.Solon]:
|
||||||
|
Connector:main: jlhttp: Started ServerConnector@{HTTP/1.1,[http/1.1]}{http://localhost:80}
|
||||||
|
INFO 2023-08-07 20:21:35.331 [-main][*][o.noear.solon.Solon]:
|
||||||
|
Server:main: jlhttp: Started (jlhttp 2.6/2.4.2) @14ms
|
||||||
|
INFO 2023-08-07 20:21:35.332 [-main][*][o.noear.solon.Solon]:
|
||||||
|
App: End loading elapsed=796ms pid=29432 v=2.4.2
|
||||||
|
INFO 2023-08-07 20:21:40.308 [-jlhttp-1][*][c.j.c.DemoController]:
|
||||||
|
test
|
||||||
|
INFO 2023-08-07 20:21:42.146 [-jlhttp-1][*][c.j.c.DemoController]:
|
||||||
|
test
|
||||||
|
INFO 2023-08-07 20:21:42.929 [-jlhttp-1][*][c.j.c.DemoController]:
|
||||||
|
test
|
||||||
|
INFO 2023-08-07 20:21:43.975 [-jlhttp-1][*][c.j.c.DemoController]:
|
||||||
|
test
|
||||||
|
INFO 2023-08-07 20:21:51.555 [-Thread-2][*][o.noear.solon.Solon]:
|
||||||
|
Server:main: jlhttp: Has Stopped (jlhttp 2.6/2.4.2)
|
||||||
@@ -12,10 +12,15 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.noear</groupId>
|
<groupId>org.noear</groupId>
|
||||||
<artifactId>solon-parent</artifactId>
|
<artifactId>solon-parent</artifactId>
|
||||||
<version>2.4.1</version>
|
<version>2.4.2</version>
|
||||||
<relativePath />
|
<relativePath />
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
|
<properties>
|
||||||
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
|
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
||||||
|
</properties>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.noear</groupId>
|
<groupId>org.noear</groupId>
|
||||||
@@ -36,5 +41,28 @@
|
|||||||
<groupId>org.noear</groupId>
|
<groupId>org.noear</groupId>
|
||||||
<artifactId>solon.banner</artifactId>
|
<artifactId>solon.banner</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.noear</groupId>
|
||||||
|
<artifactId>solon.logging.logback</artifactId>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.noear</groupId>
|
||||||
|
<artifactId>solon.health.detector</artifactId>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
|
|
||||||
|
<build>
|
||||||
|
<finalName>${project.artifactId}</finalName>
|
||||||
|
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.noear</groupId>
|
||||||
|
<artifactId>solon-maven-plugin</artifactId>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
</project>
|
</project>
|
||||||
@@ -1,10 +1,12 @@
|
|||||||
package com.jiscuss;
|
package com.jiscuss;
|
||||||
|
|
||||||
import org.noear.solon.Solon;
|
import org.noear.solon.Solon;
|
||||||
|
import org.noear.solon.annotation.SolonMain;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author cyy 2023/7/12 created
|
* @author cyy 2023/7/12 created
|
||||||
*/
|
*/
|
||||||
|
@SolonMain
|
||||||
public class JiscussApp {
|
public class JiscussApp {
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
Solon.start(JiscussApp.class, args)
|
Solon.start(JiscussApp.class, args)
|
||||||
|
|||||||
@@ -3,14 +3,21 @@ package com.jiscuss.controller;
|
|||||||
import org.noear.solon.annotation.Controller;
|
import org.noear.solon.annotation.Controller;
|
||||||
import org.noear.solon.annotation.Mapping;
|
import org.noear.solon.annotation.Mapping;
|
||||||
import org.noear.solon.core.handle.ModelAndView;
|
import org.noear.solon.core.handle.ModelAndView;
|
||||||
|
import org.slf4j.Logger;
|
||||||
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author cyy 2023/7/12 created
|
* @author cyy 2023/7/12 created
|
||||||
*/
|
*/
|
||||||
@Controller
|
@Controller
|
||||||
public class DemoController {
|
public class DemoController {
|
||||||
|
|
||||||
|
static Logger log = LoggerFactory.getLogger(DemoController.class);
|
||||||
|
|
||||||
@Mapping("/")
|
@Mapping("/")
|
||||||
public Object test(){
|
public Object test(){
|
||||||
|
log.info("test");
|
||||||
ModelAndView model = new ModelAndView("index.htm");
|
ModelAndView model = new ModelAndView("index.htm");
|
||||||
model.put("title","jiscuss");
|
model.put("title","jiscuss");
|
||||||
model.put("message","你好 jiscuss!");
|
model.put("message","你好 jiscuss!");
|
||||||
|
|||||||
@@ -2,4 +2,7 @@ server.port: 80
|
|||||||
|
|
||||||
solon.app:
|
solon.app:
|
||||||
name: jiscuss
|
name: jiscuss
|
||||||
group: jiscuss
|
group: jiscuss
|
||||||
|
|
||||||
|
# 可选: *,disk,cpu,jvm,memory,os,qps
|
||||||
|
solon.health.detector: "*"
|
||||||
Reference in New Issue
Block a user