Hi,
From the documentation of Jmix & cuba i found how to build & deploy a war file.
@SpringBootApplication
@Configuration
@PropertySource(value = { "classpath:application.properties" })
public class FlexidataApplication extends SpringBootServletInitializer {
public static void main(String[] args) {
SpringApplication.run(FlexidataApplication.class, args);
}
@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
return builder.sources(SpringApplication.class);
}
@Bean
@Primary
@ConfigurationProperties(prefix="main.datasource")
DataSource dataSource() {
return DataSourceBuilder.create().build();
}
}
This is the code that I added as well as in the application.properties. However when deploying I’m always getting a 404 error
jelastic stack
Tomcat 9
java 11
I also tested this with the basic setup (new project & run) that has the same result.