base_url not working in CodeIgniter - codeigniter

I am developing a Web Application.
I have created a Controller called Starter.
In the navigation I have put a link like this:
Starter
It is returning a 404 Object not found Error.

Either use
Starter
or
Starter

Related

Spring boot web app - not able to pick the static content

Spring boot web app with angular bundle was working fine earlier
Then I added a gradle dependency which is a library that is built within my organization to achieve some api calls. And after that the view/angular build is not picking up by spring boot application.
My project structure looks like below
web-app\
src\main\java\
WebApplication.java
\resources\public\index.html
\public\main.5214684651aera5146.js
\public\styles.3asd44654e1asd135fsdf.js
\public\other-angular-build-files
application.properties
I haven't added any view controllers/resource handlers by implementing WebMvcConfigurer. Spring boot was able to pick the index.html file as welcome page and I was able to see the page on http://localhost:8080.
But now it is not working, I have gone though below article and tried with different location of view - public, static, resources, META-INF\resources but nothing workout.
https://spring.io/blog/2013/12/19/serving-static-web-content-with-spring-boot
Can someone help how can I debug this issue or override MVC config so that my spring boot should pick the index.html as the welcome page.
In addition to M. Deinum answer you can try to restrict #ComponentScan only in your app and manually create beans from classes from library

Why is jsp rendering when tomcat is running?

I am making the screen view with vue.js and the backend api with spring.
So, when spring tomcat is run, there is no need to render the jsp file. What should I do? Please help me
It seem you use vue.js as front end.
So you can use spring-boot with spring-mvc to build backend api which return json data.
Or the mix or hybrid ( load vue.js in jsp template ...):
Refer: https://www.baeldung.com/spring-boot-vue-js

How to create helloworld example with spring web mvc?

I’m new with spring web mvc I tried to create new project spring web mvc framework in eclipse ide but it’s still show error sometimes it error status 404 on run time with tomcat I’ve tried to search a lot but still the same. Please anyone help give me the step bye step to create spring web mvc in eclipse ide.
If you start learning with spring web mvc please follow this link

Grails How to using GSP-Views and REST Webservice in the same Project

I am very new in Groovy and Grails and need some help with my project.
I am using Grails 2.3.8 and the Spring Security Core plugin for Authorization. I created some domain-classes and generated all necessary files with "generate-all"-command. So I can edit my data with the normal gsp-views. This is working fine.
But now I have to extend this project with a REST Webservice (the views to edit data should stay). There are multiple way's to create Webservice I've seen, like Annotations with #Resource on the domain or an extendable RestfulController or I found plugins like Jaxrs.
Could anyone please help me to find out which is the best approach to add a REST Webservice on an existing project which should still work? Or does anyone has a example for something like this?
Thanks in advance,
sbr
EDIT: I'm doing it now with spring security core and acl plugin and the JAXRS plugin for REST api.
To secure the REST api I installed the spring security rest plugin. The authentification over rest api is working fine. BUT now I can't login on my UI Views which are secured by spring security core and acl. There is no error at login, but after click on login I'm never logged in. It is like nothing happens.
Does anyone have an idea what could be wrong or how I have to manage both authentifications?

Spring MVC portlet not deploying

I wrote a simple spring mvc portlet and I copied to "deploy" in liferay it is not automatically getting deployed to tomcat's webapp folder.
Further it is deploying only when the tomcat is restarted.
Also the portal having the spring mvc portlet is not automatically refreshed with the new content.
I had to remove it and add it again.
I tried with a simple portlet app and everything happens automatically by default.
Can you tell me what I am missing here in spring mvc portlet app.
Any suggestions would be helpful..
This link from liferay forum might help you.
Just check if the property auto.deploy.interval=0 or auto.deploy.enabled=false is not set.

Resources