0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

STSでコンソールログを表示する

0
Posted at

STSでコンソールログを表示する方法

App.java
package com.example;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;

@EnableAutoConfiguration
@ComponentScan
public class App  {

    public static void main(String[] args) {
        SpringApplication.run(App.class, args);
        
        //Logコンソールログの出力方法
        //import org.apache.commons.logging.Log;
        //import org.apache.commons.logging.LogFactory;
        //getLog("このファイルのクラス名.class")
        Log log = LogFactory.getLog(App.class);
        log.info("ログ出力");
    }
}

// src/mail/resourceのschema.sql に自動でテーブルを作る仕組みあり。
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?