Before Chinese code Spring Boot Implement a simple REST service I don't know why . The opening of new issue: The demo service stopped · Issue #2 · program-in-chinese/programming_term_dictionary.

Without a clue , Add log first : program-in-chinese/programming_term_dictionary

application.yml:

logging:
file: journal .log

Dictionary controller .java:

@RestController
public class Dictionary controller { private static final Logger record = LoggerFactory.getLogger( Dictionary controller .class);
...
@GetMapping("/")
@ResponseBody
public entry Take the entry (@RequestParam(name = "term", required = false, defaultValue = "") String The English term ) {
record .info(" Input : " + The English term );
...
}

On the issue of service suspension , If you have an idea / Please give me more clues .

Demonstrate the machine environment and configuration :

Java 8,

Ubuntu 14.04,

FX-4100 Quad-Core, 16GB Memory , 2T Hard disk

Supplement notes : It's mostly because the remote login server exits , The service automatically ends . add to nohup See later . Reference resources : Run java jar file on a server as background process

Reference resources :

74. Properties and Configuration

Spring Boot Logging Example

2018-08-16 Chinese code Spring Boot Add more articles about basic logs

  1. 2018-08-20 Chinese code Spring Boot Integrate H2 In-memory database

    Continued : Chinese code Spring Boot Add basic log , Source code library address is the same . In view of the small amount of data in this project ( Even ten thousand entries are in 1MB within ), The current choice is lightweight and easy to configure and deploy H2 Memory database is more reasonable . this ...

  2. Chinese code Spring Boot Integrate H2 In-memory database

    Continued :  Chinese code Spring Boot Add basic log , Source code library address is the same . In view of the small amount of data in this project ( Even ten thousand entries are in 1MB within ), The current choice is lightweight and easy to configure and deploy H2 Memory database is more reasonable . this ...

  3. 2018-08-24 Chinese code Spring Boot Yes H2 Database simple query

    Continued : Chinese code Spring Boot Integrate H2 In-memory database Add the English term field... To the entry : @Entity public class entry { @Id private long id; private S ...

  4. 2018-08-14 Chinese code Spring Boot Implement a simple REST service

    See... For the final goal : Reference resources MSDN, Trial run .NET Translation of class library identifier · Issue #54 · program-in-chinese/overview This article is only a technical exploration + The first small step in prototyping . The source code library : demonstration ...

  5. spring/spirng boot add to fluent journal -aop

    This project is based on aop In the form of fluent journal sample Introduce spring-mvc-aop-helloworld by spring mvc aop condition toolcommontest by s ...

  6. spring boot Integrate slf4j-log journal

    Original address :https://blog.csdn.net/u011271894/article/details/75735915 Copyright notice : This article is an original blog article , No reprint without the permission of the blogger . https://bl ...

  7. Spring Boot - Logback What are the factors to consider when configuring logs

    Spring Boot - Logback Configuration log For performance reasons ,Logback At present, it is springboot Standard configuration of application log : Of course, sometimes in the production environment, we will also consider adopting a unified processing method with the three-party middleware .@pdai ...

  8. spring boot Log entry in

    Logging is not usually presented as a function in the requirements phase , I won't see the details in the product plan . however , This does not affect its importance in any system at all . The relationship between alarm system and log system In order to ensure the high availability of services , We must find problems in time , location ...

  9. Spring Boot series : Log dynamic configuration details

    The fastest shortcut in the world , It's down to earth , This article has included the architecture technology column, focusing on this favorite place to share . Open source project : Distributed monitoring (Gitee GVP Most valuable open source projects ):https://gitee.com/sanjianket ...

Random recommendation

  1. BMP Image difference / Compare

    #include <stdio.h> #include <stdlib.h> #include <string.h> int main(int argc, char ...

  2. Record several kinds of information about libsvm Format data list and dict usage

    # list Sum of elements sum = reduce(lambda x,y: x+y, mylist) # Compare the two lists Whether the elements of are exactly the same if all(x==y for x, y in zip( ...

  3. SQL Server Some key words explain ( One )

    1.CROSS APPLY  and OUTER APPLY MSDN Explain the following ( Personal understanding is not very clear ): Use  APPLY  Operator can call a table valued function for each row returned by an external table expression that implements a query operation . Table valued function as right input , Outside ...

  4. The legendary WCF(12): What's the use of server callback

    You say? , What's the use of server-side callbacks ? Ask like this , It's hard to answer , Is that so? . Don't worry , Let's start with a scenario . Suppose the existing server side S, client A Start connecting S And call related operations , There is an operation , There's something special about the function , Cannot reply immediately after calling , Because on the server ...

  5. mongodb User authorization

    1) Sign in admin database ,admin It's a hidden database , by mongodb Super administrator data table for mongo admin A new user db.createUser({'user':'test','pwd':'12345 ...

  6. LeetCode _ Gas Station

    There are N gas stations along a circular route, where the amount of gas at station i is gas[i]. You ...

  7. HP hpacucli Tool use

    Command composition hpacucli [parameter=value] see : View all controller status   hpacucli ctrl all show see slot 0 Array information detailed status ( You can view physical disks and logical magnets ...

  8. python-pcl

    python-pcl Installation and use https://blog.csdn.net/joker_hapy/article/details/85006818 Ubuntu16.04 Lower installation PCL And python-p ...

  9. 698. Partition to K Equal Sum Subsets The array is divided into the same k Group

    [ Copy questions ]: Given an array of integers nums and a positive integer k, find whether it's possible to divide ...

  10. javascript in encodeURI and decodeURI Method introduction

    encodeURI and decodeURI It's used in pairs , Because the address bar of the browser has Chinese characters , There can be unexpected errors , So you can encodeURI Convert non English characters into English encoding ,decodeURI It can be used to put words ...