Open the file sam-app/HelloWorldFuction/src/main/java/helloworld/App.java
and make a simple code change. For
example, change the response message to return hello my friend
instead of hello world.
Note: Make sure you save the file after changing it.
When using Python or Node, you don’t have to restart the sam local
process, just refresh the browser
tab or re-trigger the CURL command to see the changes reflected in your endpoint. However, when using Java, you will need
to rebuild the module with sam build
for ech change.
You also need to restart sam local
if you change the template.yaml
.