title: Configuring embedded tomcat in Java Spring
body: <p>im new to Java Spring and when i am starting netbeans with a new web project, i have the option to choose a framework. When I'm choosing Spring MVC, i have got an embedded tomcat out of the box. I liked it very much! So easy it can be! But this make it complicated to understand what is happing behind. I want to know, how to create a https connection, without configuring in the tomcat settings. (Or is this the only way?) I tried this one, but than you have to start tomcat manually with the batch-file. When using http-connection und you running your project it usally reachable and you do not need to start tomcat! I dont know how it works, but i think it starts the embedded tomcat and listing to a random port, the url is printing out when starting project. Another question is, where can i change the url name? Now i have this one: </p>
  
  <pre><code> http://localhost:8084/projectname/
  </code></pre>
  
  <p>And i want to give a customer name. Maybe someone answer to this question or post a link with useful information how to configure embedded tomcat. For me it is important to keep the default construction of java spring in netbeans! </p>
  
  <p><a href="https://i.stack.imgur.com/EFpge.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/EFpge.jpg" alt="enter image description here"></a></p>
  
  <p>And i want to use the dispatcher.xml,  web.xml -> So don't want to switsch to use tomcat in my javacode! Hope that this is possible!</p>
  
  <p>Thank you very much, Mira.</p>