The configuration file

Most configuration is done through the vraptor.xml file.

Only paired values such as view overriding can be done as properties in another file (views.properties).

Blank vraptor.xml

<vraptor>
</vraptor>

Components

To register a component use the component tag:

<vraptor>

        <component>org.vraptor.examples.TestComponent</component>
        
</vraptor>

Converters

To register a converter use the converter tag:

<vraptor>

        <converter>org.vraptor.examples.TestConverter</converter>
        
</vraptor>

Plugin

To register a plugin use the plugin tag.

<vraptor>

        <plugin>org.vraptor.examples.TestPlugin</plugin>
        
</vraptor>

UrlManager

<vraptor>
        <url-manager>org.vraptor.examples.MyUrlManager</url-manager>
</vraptor>

Auto discover

You can turn off components auto discover through:

<vraptor>
        <auto-discover>false</auto-discover>
</vraptor>