Answers for "spring boot basic example"

0

spring boot routing examples

@RestController
public class OrderController {
    @RequestMapping(value = "/customers/{cid}/orders/{oid}", method = GET)
    public Order getOrder(@PathVariable int cid, @PathVariable int oid) {
        ...
    }
}
Posted by: Guest on March-09-2020
0

log4j with spring boot restful services

<!-- Rolling File Appender -->
<RollingFile name="FileAppender" fileName="logs/log4j2-demo.log" 
             filePattern="logs/log4j2-demo-%d{yyyy-MM-dd}-%i.log">
    <PatternLayout>
        <Pattern>${LOG_PATTERN}</Pattern>
    </PatternLayout>
    <Policies>
        <SizeBasedTriggeringPolicy size="10MB" />
    </Policies>
    <DefaultRolloverStrategy max="10"/>
</RollingFile>
Posted by: Guest on May-02-2020

Code answers related to "spring boot basic example"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language